在 Azure 中備份虛擬機器Back up a virtual machine in Azure

您可以透過 Azure 入口網站建立 Azure 備份。Azure backups can be created through the Azure portal. 此方法可提供以瀏覽器為基礎的使用者介面,以便建立和設定 Azure 備份及所有相關的資源。This method provides a browser-based user interface to create and configure Azure backups and all related resources. 您可以定期建立備份以保護您的資料。You can protect your data by taking backups at regular intervals. Azure 備份會建立復原點,其可儲存在異地備援復原保存庫中。Azure Backup creates recovery points that can be stored in geo-redundant recovery vaults. 本文詳述如何使用 Azure 入口網站來備份虛擬機器 (VM)。This article details how to back up a virtual machine (VM) with the Azure portal.

本快速入門能夠在現有的 Azure VM 上進行備份。This quickstart enables backup on an existing Azure VM. 如果您需要建立 VM,您可以使用 Azure 入口網站來建立 VMIf you need to create a VM, you can create a VM with the Azure portal.

登入 AzureLog in to Azure

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

選取要備份的 VMSelect a VM to back up

建立復原服務保存庫的簡單排程每日備份。Create a simple scheduled daily backup to a Recovery Services Vault.

  1. 在左邊的功能表上,選取 [虛擬機器] 。In the menu on the left, select Virtual machines.
  2. 從清單中選擇要備份的 VM。From the list, choose a VM to back up. 如果您使用範例 VM 快速入門命令,則 VM 會在 myResourceGroup 資源群組中命名為 myVM 。If you used the sample VM quickstart commands, the VM is named myVM in the myResourceGroup resource group.
  3. 在 [作業] 區段中,選擇 [備份] 。In the Operations section, choose Backup. [啟用備份] 視窗隨即開啟。The Enable backup window opens.

在 VM 上啟用備份Enable backup on a VM

復原服務保存庫是一個邏輯容器,可儲存每個受保護資源 (例如 Azure VM) 的備份資料。A Recovery Services vault is a logical container that stores the backup data for each protected resource, such as Azure VMs. 執行受保護資源的備份作業時,它會在復原服務保存庫內建立復原點。When the backup job for a protected resource runs, it creates a recovery point inside the Recovery Services vault. 然後您可以使用其中一個復原點,將資料還原到指定的時間點。You can then use one of these recovery points to restore data to a given point in time.

  1. 選取 [新建] 並提供新存放庫的名稱,例如 myRecoveryServicesVaultSelect Create new and provide a name for the new vault, such as myRecoveryServicesVault.

  2. 如果尚未選取,請選擇 [使用現有] ,然後從下拉式功能表中選取您 VM 的資源群組。If not already selected, choose Use existing, then select the resource group of your VM from the drop-down menu.

    在 Azure 入口網站中啟用 VM 備份

    根據預設,已針對異地備援儲存體設定保存庫。By default, the vault is set for Geo-Redundant storage. 若要進一步保護您的資料,此儲存體備援層級可確保備份資料會複寫到與主要地區距離數百英哩的次要 Azure 地區。To further protect your data, this storage redundancy level ensures that your backup data is replicated to a secondary Azure region that is hundreds of miles away from the primary region.

    您可以建立和使用相關原則,來定義備份作業的執行時以及復原點的儲存時間長度。You create and use policies to define when a backup job runs and how long the recovery points are stored. 預設保護原則會每天執行備份作業並將復原點保留 30 天。The default protection policy runs a backup job each day and retains recovery points for 30 days. 您可以使用這些預設原則值來快速保護您的 VM。You can use these default policy values to quickly protect your VM.

  3. 若要接受預設備份原則值,請選取 [啟用備份] 。To accept the default backup policy values, select Enable Backup.

需要一點時間才會建立復原服務保存庫。It takes a few moments to create the Recovery Services vault.

開始備份作業Start a backup job

您可以立即開始備份,而非等候預設原則在排定的時間執行此作業。You can start a backup now rather than wait for the default policy to run the job at the scheduled time. 這第一個備份作業會建立完整復原點。This first backup job creates a full recovery point. 此初始備份之後的每個備份作業會建立增量復原點。Each backup job after this initial backup creates incremental recovery points. 增量復原點符合儲存和時間效率,因為它只會傳輸自上次備份後所做的變更。Incremental recovery points are storage and time-efficient, as they only transfer changes made since the last backup.

  1. 在您 VM 的 [備份] 視窗上,選取 [立即備份] 。On the Backup window for your VM, select Backup now.

    在 Azure 入口網站中執行立即的 VM 備份

  2. 若要接受 30 天的備份保留原則,請保留預設的 [保留備份到] 日期。To accept the backup retention policy of 30 days, leave the default Retain Backup Till date. 若要開始作業,請選取 [備份] 。To start the job, select Backup.

監視備份作業Monitor the backup job

VM 的 [備份] 視窗中會顯示備份的狀態及已完成的還原點數目。In the Backup window for your VM, the status of the backup and number of completed restore points are shown. VM 的備份作業完成後,[概觀] 視窗的右側會顯示有關 [上次備份時間] 、[最新的還原點] 和 [最舊的還原點] 的資訊。Once the VM backup job is complete, information on the Last backup time, Latest restore point, and Oldest restore point is shown on the right-hand side of the Overview window.

清除部署Clean up deployment

不再需要時,您可以停用 VM 的保護,移除還原點和復原服務保存庫,然後刪除資源群組和相關聯的 VM 資源。When no longer needed, you can disable protection on the VM, remove the restore points and Recovery Services vault, then delete the resource group and associated VM resources

如果您要繼續進行說明如何為您的 VM 還原資料的備份教學課程,請略過本節中的步驟並前往後續步驟If you are going to continue on to a Backup tutorial that explains how to restore data for your VM, skip the steps in this section and go to Next steps.

  1. 選取 VM 的 [備份] 選項。Select the Backup option for your VM.

  2. 選取 [更多...] 以顯示其他選項,然後選擇 [停止備份] 。Select ...More to show additional options, then choose Stop backup.

    從 Azure 入口網站停用 VM 備份

  3. 從下拉式功能表中選取 [刪除備份資料] 。Select Delete Backup Data from the drop-down menu.

  4. 在 [輸入備份項目的名稱] 對話方塊中,輸入您的 VM 名稱,例如 myVM 。In the Type the name of the Backup item dialog, enter your VM name, such as myVM. 選取 [停止備份] 。Select Stop Backup.

    一旦停止 VM 備份並移除復原點,您即可刪除資源群組。Once the VM backup has been stopped and recovery points removed, you can delete the resource group. 如果您使用現有的 VM,建議您將資源群組和 VM 留在原處。If you used an existing VM, you may wish to leave the resource group and VM in place.

  5. 在左側功能表上,選取 [資源群組] 。In the menu on the left, select Resource groups.

  6. 從清單中選擇您的資源群組。From the list, choose your resource group. 如果您使用範例 VM 快速入門命令,資源群組就會命名為 myResourceGroup 。If you used the sample VM quickstart commands, the resource group is named myResourceGroup.

  7. 選取 [刪除資源群組] 。Select Delete resource group. 若要確認,請輸入資源群組名稱,然後選取 [刪除] 。To confirm, enter the resource group name, then select Delete.

    從 Azure 入口網站刪除資源群組

後續步驟Next steps

在本快速入門中,您已建立復原服務保存庫、啟用 VM 的保護功能,並建立初始復原點。In this quickstart, you created a Recovery Services vault, enabled protection on a VM, and created the initial recovery point. 若要深入了解 Azure 備份和復原服務,請繼續進行教學課程。To learn more about Azure Backup and Recovery Services, continue to the tutorials.