แก้ไข

แชร์ผ่าน


Back up Windows Server to Azure

This tutorial describes how to back up on-premises Windows Server to Azure using the Microsoft Azure Recovery Services (MARS) agent.

Azure Backup helps you to protect a Windows Server from corruptions, attacks, and disasters. Azure Backup provides a lightweight tool called the Microsoft Azure Recovery Services (MARS) agent. The MARS agent is installed on the Windows Server to protect files and folders, and server configuration info via Windows Server System State. This tutorial explains how you can use MARS Agent to back up your Windows Server to Azure.

Sign in to Azure

Sign in to the Azure portal.

Create a Recovery Services vault

A Recovery Services vault is a management entity that stores recovery points that are created over time, and it provides an interface to perform backup-related operations. These operations include taking on-demand backups, performing restores, and creating backup policies.

To create a Recovery Services vault:

  1. Sign in to the Azure portal.

  2. Search for Backup center, and then go to the Backup center dashboard.

    Screenshot that shows where to search for and select 'Backup center'.

  3. On the Overview pane, select Vault.

    Screenshot of the button for creating a Recovery Services vault.

  4. Select Recovery Services vault > Continue.

    Screenshot that shows where to select Recovery Services as the vault type.

  5. On the Recovery Services vault pane, enter the following values:

    • Subscription: Select the subscription to use. If you're a member of only one subscription, you'll see that name. If you're not sure which subscription to use, use the default subscription. There are multiple choices only if your work or school account is associated with more than one Azure subscription.

    • Resource group: Use an existing resource group or create a new one. To view a list of available resource groups in your subscription, select Use existing, and then select a resource in the dropdown list. To create a new resource group, select Create new, and then enter the name. For more information about resource groups, see Azure Resource Manager overview.

    • Vault name: Enter a friendly name to identify the vault. The name must be unique to the Azure subscription. Specify a name that has at least 2 but not more than 50 characters. The name must start with a letter and consist only of letters, numbers, and hyphens.

    • Region: Select the geographic region for the vault. For you to create a vault to help protect any data source, the vault must be in the same region as the data source.

      Important

      If you're not sure of the location of your data source, close the window. Go to the list of your resources in the portal. If you have data sources in multiple regions, create a Recovery Services vault for each region. Create the vault in the first location before you create a vault in another location. There's no need to specify storage accounts to store the backup data. The Recovery Services vault and Azure Backup handle that automatically.

    Screenshot that shows fields for configuring a Recovery Services vault.

  6. After providing the values, select Review + create.

  7. To finish creating the Recovery Services vault, select Create.

    It can take a while to create the Recovery Services vault. Monitor the status notifications in the Notifications area at the upper right. After the vault is created, it appears in the list of Recovery Services vaults. If the vault doesn't appear, select Refresh.

    Screenshot that shows the button for refreshing the list of backup vaults.

Note

Azure Backup now supports immutable vaults that help you ensure that recovery points once created can't be deleted before their expiry as per the backup policy. You can make the immutability irreversible for maximum protection to your backup data from various threats, including ransomware attacks and malicious actors. Learn more.

Download Recovery Services agent

The Microsoft Azure Recovery Services (MARS) agent creates an association between Windows Server and your Recovery Services vault.

To download the agent to your server, follow these steps:

  1. From the list of Recovery Services vaults, select myRecoveryServicesVault to open its dashboard.

    Screenshot shows how to select the vault to open the dashboard.

  2. On the vault dashboard menu, select Backup.

  3. On the Backup Goal menu:

    • For Where is your workload running?, select On-premises
    • For What do you want to backup?, select Files and folders and System State

    Screenshot shows the Backup Goal menu.

  4. Select Prepare Infrastructure to open the Prepare infrastructure menu.

  5. On the Prepare infrastructure menu, select Download Agent for Windows Server or Windows Client to download the MARSAgentInstaller.exe.

    Screenshot shows how to download MARS agent for Windows Server or Windows Client.

    The installer opens a separate browser and downloads MARSAgentInstaller.exe.

  6. Before you run the downloaded file, on the Prepare infrastructure menu select Download and save the Vault Credentials file. Vault credentials are required to connect the MARS Agent with the Recovery Services vault.

    Screenshot shows how to download the vault credentials file.

Install and register the agent

To install and register the agent, follow these steps:

  1. Locate and double-click the downloaded MARSagentinstaller.exe.

    The Microsoft Azure Recovery Services Agent Setup Wizard appears.

  2. On the wizard, enter the following details when prompted:

  • Location for the installation and cache folder.

  • Proxy server details, if you use a proxy server to connect to the internet.

  • Your user name and password details if you use an authenticated proxy.

    Screenshot shows the Microsoft Azure Recovery Services Agent setup wizard.

  1. Select Register.

  2. At the end of the wizard, select Proceed to Registration and provide the Vault Credentials file you downloaded in the previous procedure.

  3. When prompted, enter an encryption passphrase to encrypt backups from Windows Server. Save the passphrase in a secure location since Microsoft can't recover the passphrase if it's lost.

  4. Select Finish.

Configure backup and retention

You use the Microsoft Azure Recovery Services agent to schedule when backups to Azure, occur on Windows Server.

To configure backup and retention on the server where you downloaded the agent, follow these steps:

  1. Open the Microsoft Azure Recovery Services agent. You can find it by searching your machine for Microsoft Azure Backup.

  2. On the Recovery Services agent console, select Schedule Backup under the Actions Pane.

    Screenshot shows tbe Schedule Backup option.

  3. Select Next to go to the Select Items to Back up page.

  4. Select Add Items and from the dialog box that opens, select System State and files or folders that you want to back up. Then select OK.

  5. Select Next.

  6. On the Specify Backup Schedule (System State) page, specify the time of the day, or week when backups need to be triggered for System State and select Next.

  7. On the Select Retention Policy (System State) page, select the Retention Policy for the backup copy for System State and select Next.

  8. Similarly, select the backup schedule and retention policy for selected files and folders.

  9. On the Choose Initial Back up Type page, select Automatically over the network, and select Next.

  10. On the Confirmation page, review the information, and select Finish.

  11. After the wizard finishes creating the backup schedule, select Close.

Run an on-demand backup

You've established the schedule when backup jobs run. However, you haven't backed up the server. It's a disaster recovery best practice to run an on-demand backup to ensure data resiliency for your server.

  1. On the Microsoft Azure Recovery Services agent console, select Back Up Now.

    Screenshot shows how to select Back Up Now.

  2. On the Back Up Now wizard, select one from Files and Folders or System State that you want to back up and select Next

  3. On the Confirmation page, review the settings that the Back Up Now wizard uses to back up your server. Then select Back Up.

  4. Select Close to close the wizard. If you close the wizard before the backup process finishes, the wizard continues to run in the background.

After the initial backup is complete, Job completed status appears on Jobs pane of the MARS agent console.

Next steps

In this tutorial, you used the Azure portal to:

  • Create a Recovery Services vault
  • Download the Microsoft Azure Recovery Services agent
  • Install the agent
  • Configure backup for Windows Server
  • Perform an on-demand backup

Continue to the next tutorial to recover files from Azure to Windows Server