title | description | ms.topic | ms.date | ms.custom | ms.service | author | ms.author |
---|---|---|---|---|---|---|---|
Tutorial - Back up Windows Server to Azure |
This tutorial details backing up on-premises Windows Servers to a Recovery Services vault. |
tutorial |
12/15/2022 |
mvc, engagement-fy23 |
backup |
AbhishekMallick-MS |
v-abhmallick |
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 the Azure portal.
[!INCLUDE How to create a Recovery Services vault]
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:
-
From the list of Recovery Services vaults, select myRecoveryServicesVault to open its dashboard.
-
On the vault dashboard menu, select Backup.
-
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
-
Select Prepare Infrastructure to open the Prepare infrastructure menu.
-
On the Prepare infrastructure menu, select Download Agent for Windows Server or Windows Client to download the MARSAgentInstaller.exe.
The installer opens a separate browser and downloads MARSAgentInstaller.exe.
-
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.
To install and register the agent, follow these steps:
-
Locate and double-click the downloaded MARSagentinstaller.exe.
The Microsoft Azure Recovery Services Agent Setup Wizard appears.
-
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.
-
Select Register.
-
At the end of the wizard, select Proceed to Registration and provide the Vault Credentials file you downloaded in the previous procedure.
-
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.
-
Select Finish.
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:
-
Open the Microsoft Azure Recovery Services agent. You can find it by searching your machine for Microsoft Azure Backup.
-
On the Recovery Services agent console, select Schedule Backup under the Actions Pane.
-
Select Next to go to the Select Items to Back up page.
-
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.
-
Select Next.
-
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.
-
On the Select Retention Policy (System State) page, select the Retention Policy for the backup copy for System State and select Next.
-
Similarly, select the backup schedule and retention policy for selected files and folders.
-
On the Choose Initial Back up Type page, select Automatically over the network, and select Next.
-
On the Confirmation page, review the information, and select Finish.
-
After the wizard finishes creating the backup schedule, select Close.
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.
-
On the Microsoft Azure Recovery Services agent console, select Back Up Now.
-
On the Back Up Now wizard, select one from Files and Folders or System State that you want to back up and select Next
-
On the Confirmation page, review the settings that the Back Up Now wizard uses to back up your server. Then select Back Up.
-
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.
In this tutorial, you used the Azure portal to:
[!div class="checklist"]
- 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
[!div class="nextstepaction"] Restore files from Azure to Windows Server