แก้ไข

แชร์ผ่าน


Frequently asked questions - Microsoft Azure Recovery Services (MARS) agent

This article answers common questions about backing up data with the Microsoft Azure Recovery Services (MARS) Agent in the Azure Backup service.

Configure backups

Where can I download the latest version of the MARS agent?

The latest MARS agent used when backing up Windows Server machines, System Center DPM, and Microsoft Azure Backup server is available for download.

Where can I download the vault credentials file?

In the Azure portal, go to Properties for your vault. Under Backup Credentials, select Download.

  • If you want to register your MARS agent or restore data from the primary region, select Primary Region, confirm that you're using the latest Recovery Services Agent, and then select Download.
  • If you're doing an alternate server restore from the backup data in the secondary region using Cross Region Restore, then select Secondary Region to download the vault credentials.

Screenshot shows how to initiate downloading vault credential file.

Screenshot shows the Download option for vault credential files in secondary region.

Note

You can't use this secondary region vault credential for registration of the MARS agent.

How long are vault credentials valid?

Vault credentials expire after 10 days. If the credentials file expires, download the file again from the Azure portal.

Why do I need to update my MARS agent for the vault credentials to work?

A new parameter is added to the vault credentials file. It can be parsed correctly only with MARS agent version 2.0.9249.0 and above.

What characters are allowed for the passphrase?

The passphrase should use characters from the ASCII character set, with ASCII values less than or equal to 127.

From what drives can I back up files and folders?

You can't back up the following types of drives and volumes:

  • Removable media: All backup item sources must report as fixed.
  • Read-only volumes: The volume must be writable for the volume shadow copy service (VSS) to function.
  • Offline volumes: The volume must be online for VSS to function.
  • Network shares: The volume must be local to the server to be backed up using online backup.
  • BitLocker-protected volumes: The volume must be unlocked before the backup can occur.
  • File System Identification: NTFS is the only file system supported.

What file and folder types are supported?

Learn more about the types of files and folders supported for backup.

Can I use the MARS agent to back up files and folders on an Azure VM?

Yes. Azure Backup provides VM-level backup for Azure VMs using the VM extension for the Azure VM agent. If you want to back up files and folders on the guest Windows operating system on the VM, you can install the MARS agent to do that.

Can I use the MARS agent to back up files and folders on temporary storage for the Azure VM?

Yes. Install the MARS agent, and back up files and folders on the guest Windows operating system to temporary storage.

  • Backup jobs fail when temporary storage data is wiped out.
  • If the temporary storage data is deleted, you can only restore to non-volatile storage.

How do I register a server to another region?

Backup data is sent to the datacenter of the vault in which the server is registered. The easiest way to change the datacenter is to uninstall and reinstall the agent, and then register the machine to a new vault in the region you need.

How can I cancel an ongoing backup job for the MARS agent?

Though you can view ongoing MARS backup jobs through the portal, you can only cancel them through the MARS console.

Does the MARS agent support Windows Server 2012 deduplication?

Yes. The MARS agent converts the deduplicated data to normal data when it prepares the backup operation. It then optimizes the data for backup, encrypts the data, and then sends the encrypted data to the vault.

Do I need administrator permissions to install and configure the MARS agent?

Yes, the installation of the MARS Agent and configuration of backups using the MARS console need the user to be a local administrator on the protected server.

In tenant restrictions scenario, which tenant should I allow access to for successful MARS backups?

To know about tenant details, open the vault credential file downloaded from Recovery Services vault and refer to the value of the <AadTenantId> attribute.

What is the impact on MARS Agent backups of transferring the vault subscription to a different Microsoft Entra directory?

The change of Microsoft Entra directory will have no impact on MARS Agent backups.

What happens if the expected Weekly, Monthly, or Yearly backup fails?

If backup fails, the next successful backup after the expected Weekly, Monthly or Yearly backup is retained as per the retention period for Weekly, Monthly and Yearly recovery points (Long Term Retention (LTR) points) respectively, as per the backup policy. This successful backup could be an adhoc backup or a scheduled backup in case of MARS Agent.

Manage backups

What happens if I rename or change the FQDN of a Windows machine configured for backup?

When you rename a Windows machine or make changes to the FQDN by performing operations like adding machine to a domain, moving machine to another domain or disjoining machine from a domain, all currently configured backups are stopped.

  • You need to register the new machine name with recovery services vault.
  • When you register the new name with the vault, the first operation is a full backup.
  • If you need to recover data backed up to the vault with the old server name, use the option to restore to an alternate location in the Recover Data Wizard. Learn more.

What is the maximum file path length for backup?

The MARS agent relies on NTFS, and uses the filepath length specification limited by the Windows API. If the files you want to protect are longer than the allowed value, back up the parent folder or the disk drive.

What characters are allowed in file paths?

The MARS agent relies on NTFS, and allows supported characters in file names/paths.

The warning "Azure Backups have not been configured for this server" appears

This warning can appear even though you've configured a backup policy, when the backup schedule settings stored on the local server aren't the same as the settings stored in the backup vault.

  • When the server or the settings have been recovered to a known good state, backup schedules can become unsynchronized.
  • If you receive this warning, configure the backup policy again, and then run an on-demand backup to resynchronize the local server with Azure.

I see a few jobs are stuck in the In Progress state for a long time under Backup Jobs in the Azure portal. How can I resolve these?

This can happen if a job was unable to complete due to reasons, such as network connectivity issues, machine shutdown, or process termination. No user action is required here. These jobs will automatically be marked as Failed after 30 days. Learn more to run an on-demand backup job using the MARS agent.

Manage the backup cache folder

What's the minimum size requirement for the cache folder?

The size of the cache folder determines the amount of data that you're backing up.

  • The cache folder volumes should have free space that equals at least 5-10% of the total size of backup data.
  • If the volume has less than 5% free space, either increase the volume size, or move the cache folder to a volume with enough space by following these steps.
  • If you back up Windows System State, you'll need an additional 30-35 GB of free space in the volume containing the cache folder.

How to check if scratch folder is valid and accessible?

  1. By default scratch folder is located at \Program Files\Microsoft Azure Recovery Services Agent\Scratch

  2. Make sure the path of your scratch folder location matches with the values of the registry key entries shown below:

    Registry path Registry Key Value
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Azure Backup\Config ScratchLocation New cache folder location
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Azure Backup\Config\CloudBackupProvider ScratchLocation New cache folder location

How do I change the cache location for the MARS agent?

  1. Run this command in an elevated command prompt to stop the Backup engine:

    Net stop obengine

  2. If you've configured System State backup, open Disk Management and unmount the disk(s) with names in the format "CBSSBVol_<ID>".

  3. By default, the scratch folder is located at \Program Files\Microsoft Azure Recovery Services Agent\Scratch

  4. Copy the entire \Scratch folder to a different drive that has sufficient space. Ensure the contents are copied, not moved.

  5. Update the following registry entries with the path of the newly moved scratch folder.

    Registry path Registry Key Value
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Azure Backup\Config ScratchLocation New scratch folder location
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Azure Backup\Config\CloudBackupProvider ScratchLocation New scratch folder location
  6. Restart the Backup engine at an elevated command prompt:

    Net stop obengine
    
    Net start obengine
    
  7. Run an on-demand backup. After the backup finishes successfully using the new location, you can remove the original cache folder.

Note

If you are using any offline seeding solution, don't change the cache location during initial replication process.

Where should the cache folder be located?

The following locations for the cache folder aren't recommended:

  • Network share/removable media: The cache folder must be local to the server that needs backing up using online backup. Network locations or removable media like USB drives aren't supported.
  • Offline volumes: The cache folder must be online for expected backup using Azure Backup Agent

Are there any attributes of the cache folder that aren't supported?

The following attributes or their combinations aren't supported for the cache folder:

  • Encrypted
  • De-duplicated
  • Compressed
  • Sparse
  • Reparse-Point

The cache folder and the metadata VHD don't have the necessary attributes for the Azure Backup agent.

Is there a way to adjust the amount of bandwidth used for backup?

Yes, you can use the Change Properties option in the MARS agent to adjust the bandwidth and timing. Learn more.

Restore

Can I recover if I forgot my passphrase?

The Azure Backup agent requires a passphrase (that you provided during registration) to decrypt the backed-up data during restore. Review the scenarios below to understand your options for handling a lost passphrase:

Original Machine
(source machine where backups were taken)
Passphrase Available Options
Available Lost If your original machine (where backups were taken) is available and still registered with the same Recovery Services vault, then you can regenerate the passphrase by following these steps.
Lost Lost Not possible to recover the data or data isn't available

Consider the following conditions:

  • If you uninstall and re-register the agent on the same original machine with the
    • Same passphrase, then you can restore your backed-up data.
    • Different passphrase, then you can't restore your backed-up data.
  • If you install the agent on a different machine with the
    • Same passphrase (used in the original machine), then you can restore your backed-up data.
    • Different passphrase, you can't restore your backed-up data.
  • If your original machine is corrupted (preventing you from regenerating the passphrase through the MARS console), but you can restore or access the original scratch folder used by the MARS agent, then you might be able to restore (if you forgot the password). For more assistance, contact Customer Support.

How do I recover if I lost my original machine (where backups were taken)?

If you have the same passphrase (that you provided during registration) of the original machine, then you can restore the backed-up data to an alternate machine. Review the scenarios below to understand your restore options.

Original Machine Passphrase Available Options
Lost Available You can install and register the MARS agent on another machine with the same passphrase that you provided during registration of the original machine. Choose Recovery Option > Another location to perform your restore. For more information, see this article.
Lost Lost Not possible to recover the data or data isn't available

My backup jobs have been failing or not running for a long time. I'm past the retention period. Can I still restore?

As a safety measure, Azure Backup will preserve the recovery point with the longest retention, even if it's past the retention period. Once backups resume and fresh recovery points become available, the older recovery point will be removed according to the specified retention.

What happens if I cancel an ongoing restore job?

If an ongoing restore job is canceled, the restore process stops. All files restored before the cancellation stay in configured destination (original or alternate location), without any rollbacks.

Does the MARS agent back up and restore ACLs set on files, folders, and volumes?

  • The MARS agent backs up ACLs set on files, folders, and volumes
  • For Volume Restore recovery option, the MARS agent provides an option to skip restoring ACL permissions to the file or folder being recovered
  • For the individual file and folders recovery option, the MARS agent will restore with ACL permissions (there's no option to skip ACL restore).

Next steps

Learn how to back up a Windows machine.