將 Windows Server 備份到 AzureBack up Windows Server to Azure

您可以使用 Azure 備份來保護您的 Windows Server,使其免受損毀、攻擊以及災害的威脅。You can use Azure Backup to protect your Windows Server from corruptions, attacks, and disasters. Azure 備份提供了一種輕量型工具,稱為「Microsoft Azure 復原服務 (MARS) 代理程式」。Azure Backup provides a lightweight tool known as the Microsoft Azure Recovery Services (MARS) agent. MARS 代理程式會安裝在 Windows Server 上,保護檔案及資料夾,並透過 Windows Server 系統狀態保護伺服器設定。The MARS agent is installed on the Windows Server to protect files and folders, and server configuration info via Windows Server System State. 本教學會解釋如何使用 MARS 代理程式來將您的 Windows Server 備份到 Azure。This tutorial explains how you can use MARS Agent to back up your Windows Server to Azure. 在本教學課程中,您將了解如何:In this tutorial you learn how to:

  • 下載並設定 MARS 代理程式Download and set up the MARS Agent
  • 為您的伺服器備份設定備份時間和保留排程Configure back up times and retention schedule for your server’s backups
  • 執行臨機操作備份Perform an ad hoc back up

登入 AzureSign in to Azure

https://portal.azure.com 登入 Azure 入口網站。Sign in to the Azure portal at https://portal.azure.com.

建立復原服務保存庫Create a Recovery Services vault

在您備份 Windows Server 之前,您必須先為備份建立一個位置,或建立一個要還原的還原點。Before you can back up Windows Server, you must create a place for the backups, or restore points, to be stored. 復原服務保存庫是 Azure 中儲存 Windows Server 備份的容器。A Recovery Services vault is a container in Azure that stores the backups from your Windows Server. 請遵循下列步驟來在 Azure 入口網站上建立復原服務保存庫。Follow the steps below to create a Recovery Services vault in the Azure portal.

  1. 在左側功能表中,選取 [所有服務],然後在服務清單中鍵入復原服務On the left-hand menu, select All services and in the services list, type Recovery Services. 按一下 [復原服務保存庫] 。Click Recovery Services vaults.

    開啟復原服務保存庫

  2. 在 [復原服務保存庫] 功能表上,按一下 [新增]。On the Recovery Services vaults menu, click Add.

    提供保存庫的資訊

  3. 在 [復原服務保存庫] 功能表中,In the Recovery Services vault menu,

    • 在 [名稱] 中鍵入 myRecoveryServicesVaultType myRecoveryServicesVault in Name.
    • 目前的訂用帳戶識別碼會出現在 [訂用帳戶] 中。The current subscription ID appears in Subscription.
    • 針對資源群組:選取 [使用現有] 並選擇 [myResourceGroup]。For Resource group, select Use existing and choose myResourceGroup. 如果 [myResourceGroup] 不存在,請選取 [新建] 並鍵入 myResourceGroupIf myResourceGroup doesn't exist, select Create New and type myResourceGroup.
    • 從 [位置] 下拉式功能表中,選擇 [西歐]。From the Location drop-down menu, choose West Europe.
    • 按一下 [建立] 建立您的復原服務保存庫。Click Create to create your Recovery Services vault.

保存庫一旦建立好,就會出現在 [復原服務保存庫] 的清單中。Once your vault is created, it appears in the list of Recovery Services vaults.

下載復原服務代理程式Download Recovery Services agent

Microsoft Azure 復原服務 (MARS) 代理程式可在您的 Windows Server 及您的復原服務保存庫間建立關聯。The Microsoft Azure Recovery Services (MARS) agent creates an association between Windows Server and your Recovery Services vault. 下列程序說明如何將代理程式下載到您的伺服器。The following procedure explains how to download the agent to your server.

  1. 在復原服務保存庫清單中,選取 [myRecoveryServicesVault] 來開啟其儀表板。From the list of Recovery Services vaults, select myRecoveryServicesVault to open its dashboard.

    提供保存庫的資訊

  2. 在 [保存庫儀表板] 功能表中,按一下 [備份]。On the vault dashboard menu, click 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

    提供保存庫的資訊

  4. 按一下 [準備基礎結構] 以開啟 [準備基礎結構] 功能表。Click Prepare Infrastructure to open the Prepare infrastructure menu.

  5. 在 [準備基礎結構] 功能表上,按一下 [下載 Windows Server 或 Windows Client 的代理程式] 以下載 MARSAgentInstaller.exeOn the Prepare infrastructure menu, click Download Agent for Windows Server or Windows Client to download the MARSAgentInstaller.exe.

    準備基礎結構

    安裝程式會開啟另一個瀏覽器視窗,並下載 MARSAgentInstaller.exeThe installer opens a separate browser and downloads MARSAgentInstaller.exe.

  6. 在您執行下載的檔案之前,請在 [準備基礎結構] 功能表上按一下 [下載],並儲存保存庫認證檔案。Before you run the downloaded file, on the Prepare infrastructure menu click Download and save the Vault Credentials file. 必須要有保存庫認證,才能連接 MARS 代理程式與復原服務保存庫。Vault credentials are required to connect the MARS Agent with the Recovery Services vault.

    準備基礎結構

安裝和註冊代理程式Install and register the agent

  1. 找出並按兩下已下載的 MARSagentinstaller.exeLocate and double-click the downloaded MARSagentinstaller.exe.

  2. Microsoft Azure 復原服務代理程式安裝精靈 便會出現。The Microsoft Azure Recovery Services Agent Setup Wizard appears. 當您執行精靈時,請在程式提示的時候提供下列資訊,然後按一下 [註冊]。As you go through the wizard, provide the following information when prompted and click Register.

    • 安裝及快取資料夾位置。Location for the installation and cache folder.

    • Proxy 伺服器資訊 (若您使用 Proxy 伺服器來連線到網際網路的話)。Proxy server info if you use a proxy server to connect to the internet.

    • 您的使用者名稱及密碼詳細資料 (若您使用驗證 Proxy 的話)Your user name and password details if you use an authenticated proxy.

      準備基礎結構

  3. 在精靈結束時,按一下 [繼續註冊] 並提供您在先前步驟中下載的保存庫認證檔案。At the end of the wizard, click Proceed to Registration and provide the Vault Credentials file you downloaded in the previous procedure.

  4. 出現提示時,請提供加密複雜密碼來加密 Windows Server 的備份。When prompted, provide an encryption passphrase to encrypt backups from Windows Server. 將複雜密碼儲存在安全的位置。一旦不慎遺失,Microsoft 將無法復原複雜密碼。Save the passphrase in a secure location as Microsoft cannot recover the passphrase if it is lost.

  5. 按一下 [完成] 。Click Finish.

設定備份和保留Configure Backup and Retention

您可以使用 Microsoft Azure 復原服務代理程式來排程 Windows Server 何時要備份至 Azure。You use the Microsoft Azure Recovery Services agent to schedule when backups to Azure, occur on Windows Server. 在您下載代理程式的伺服器上執行下列步驟。Execute the following steps on the server where you downloaded the agent.

  1. 開啟 Microsoft Azure 復原服務代理程式。Open the Microsoft Azure Recovery Services agent. 您可以透過在您的電腦中搜尋 Microsoft Azure 備份來找出備份。You can find it by searching your machine for Microsoft Azure Backup.

  2. 在 [復原服務代理程式] 主控台中,按一下 [動作窗格] 下的 [排程備份]。In the Recovery Services agent console, click Schedule Backup under the Actions Pane.

    準備基礎結構

  3. 按一下 [下一步] 來巡覽至 [elect Items to Back up] (選取要備份之項目) 頁面。Click Next to navigate to the Select Items to Back up page.

  4. 按一下 [新增項目],並在開啟的對話方塊中,選取 [系統狀態] 及您要備份的檔案和資料夾。Click Add Items and from the dialog box that opens, select System State and files or folders that you want to back up. 然後按一下 [確定] 。Then click OK.

  5. 按 [下一步] 。Click 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 click Next.

  7. 在 [選取保留原則 (系統狀態)] 頁面上,為系統狀態的備份複本選取保留原則,然後按 [下一步]。On the Select Retention Policy (System State) page, select the Retention Policy for the backup copy for System State and click 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 click Next.

  10. 在 [確認] 頁面上檢閱資訊,然後按一下 [完成]。On the Confirmation page, review the information, and click Finish.

  11. 當精靈建立好備份排程時,請按一下 [關閉] 。After the wizard finishes creating the backup schedule, click Close.

執行臨機操作備份Perform an ad hoc back up

您已建立備份工作執行的排程。You have established the schedule when backup jobs run. 然而,您尚未備份至伺服器。However, you have not backed up the server. 災害復原的最佳做法是執行隨選備份,以確保您伺服器的資料復原。It is a disaster recovery best practice to run an on-demand backup to ensure data resiliency for your server.

  1. 在 Microsoft Azure 復原服務代理程式主控台中,按一下 [立即備份]。In the Microsoft Azure Recovery Services agent console, click 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 click Next

  3. 在 [確認] 頁面上,檢閱 [立即備份精靈] 要用來備份您伺服器的設定。On the Confirmation page, review the settings that the Back Up Now wizard uses to back up your server. 然後按一下 [備份] 。Then click Back Up.

  4. 按一下 [關閉] 即可關閉精靈。Click Close to close the wizard. 如果您在備份程序完成之前關閉精靈,精靈會繼續在背景中執行。If you close the wizard before the back up process finishes, the wizard continues to run in the background.

  5. 完成初始備份之後,MARS 代理程式主控台中的 [工作] 窗格會顯示 [工作已完成] 狀態。After the initial backup is completed, Job completed status appears in Jobs pane of the MARS agent console.

後續步驟Next steps

在本教學課程中,您已使用 Azure 入口網站來:In this tutorial, you used the Azure portal to:

  • 建立復原服務保存庫Create a Recovery Services vault
  • 下載 Microsoft Azure 復原服務代理程式Download the Microsoft Azure Recovery Services agent
  • 安裝代理程式Install the agent
  • 設定 Windows Server 的備份Configure backup for Windows Server
  • 執行隨選備份Perform an on-demand backup

繼續下一個教學課程,從 Azure 復原檔案到 Windows ServerContinue to the next tutorial to recover files from Azure to Windows Server