如果您要将 Compute Engine 实例备份到与该实例位于不同项目中的备份保险柜,请确保已向该备份保险柜的 Backup and DR Vault Service Agent 授予访问该项目中实例的权限。(如果备份保险柜和实例位于同一项目中,则系统会默认授予此权限。)
为确保 Backup and DR Vault Service Agent 具有将 Compute Engine 实例备份到备份保险柜所需的权限,请让您的管理员向 Backup and DR Vault Service Agent 授予 Compute Engine 实例项目的 Backup and DR Compute Engine Operator (roles/backupdr.computeEngineOperator) IAM 角色。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-09-09。"],[],[],null,["*** ** * ** ***\n\nThis document provides information about how to change the backup plan that is\napplied to your Compute Engine instance. You can change your instance's\nbackup plan to align your data protection strategy with your changing\noperational requirements.\n\nBackup and DR backup plans let you define advanced backup strategies\nto store your Compute Engine instances in secure storage locations\ncalled backup vaults. Using the backup plan applied to your instance,\nyou can create scheduled or on-demand backups of your instance in a\nbackup vault.\n\nBefore you begin\n\n- Enable the Backup and DR Service API where the Compute Engine instances are located.\n [Enable the API](https://console.cloud.google.com/flows/enableapi?apiid=backupdr.googleapis.com&_ga=2.145630134.30427899.1640890668-1982243420.1634228058)\n\n- [Create a backup vault](/backup-disaster-recovery/docs/cloud-console/backup-vault-create)\n- [Create a backup plan](/backup-disaster-recovery/docs/cloud-console/backup-plan-create)\n- Set up Log Analytics on your bucket to monitor Backup and DR backup jobs.\n\nRequired roles\n\n-\n\n To get the permissions that\n you need to edit an instance's properties and change the associated\n backup plan,\n\n ask your administrator to grant you the\n following IAM roles:\n\n - To edit the instance: [Compute Instance Admin (v1)](/iam/docs/roles-permissions/compute#compute.instanceAdmin.v1) (`roles/compute.instanceAdmin.v1`) on the project for the Compute Engine instance\n - To configure scheduled backups or run on-demand backups:\n - [Backup and DR Backup User](/iam/docs/roles-permissions/backupdr#backupdr.backupUser) (`roles/backupdr.backupUser`) on the project for the backup vault\n - [Viewer](/iam/docs/roles-overview#basic) (`roles/viewer`) on the project for the backup vault\n\n\n For more information about granting roles, see [Manage access to projects, folders, and organizations](/iam/docs/granting-changing-revoking-access).\n\n\n You might also be able to get\n the required permissions through [custom\n roles](/iam/docs/creating-custom-roles) or other [predefined\n roles](/iam/docs/roles-overview#predefined).\n- If you want to back up a Compute Engine instance to a\n backup vault that is in a different project than the instance, then\n make sure the\n [Backup and DR Vault Service Agent](/iam/docs/service-agents#backup-and-dr-vault-service-agent) for the backup vault has been\n granted permission to access the instances in that project. (If the\n backup vault and instance are in the same project, then this\n permission is already granted by default.)\n\n-\n\n To ensure that Backup and DR Vault Service Agent has the necessary\n permissions to back up a Compute Engine instance to a\n backup vault,\n\n ask your administrator to grant Backup and DR Vault Service Agent the\n\n\n [Backup and DR Compute Engine Operator](/iam/docs/roles-permissions/backupdr#backupdr.computeEngineOperator) (`roles/backupdr.computeEngineOperator`)\n IAM role on the project for the Compute Engine instance.\n\n\n | **Important:** You must grant this role to Backup and DR Vault Service Agent, *not* to your user account. Failure to grant the role to the correct principal might result in permission errors.\n\n \u003cbr /\u003e\n\nChange the backup plan applied to your instance\n\nYour new backup plan must be from the same project and store the backup in the\nsame backup vault as your existing plan.\n\nYou can change your instance's backup plan by modifying the instance\nconfiguration on the Google Cloud console, as follows:\n\n1. In the Google Cloud console, go to the **VM instances** page.\n\n [Go to VM instances](https://console.cloud.google.com/compute/instances)\n2. Click the name of the instance whose backup plan you want to change.\n The instance details page appears for the selected instance.\n\n3. Click edit **Edit** .\n The **Edit** page appears for your instance.\n\n4. Navigate to the **Backup plan** section and then click **Change plan**.\n\n5. In the **Select a backup plan** pane that appears, do the following:\n\n 1. In the **Backup plan name** column, click the name of the back plan that you want to use.\n 2. To confirm your choice of backup plan and return to the **Edit** page, click **Apply**.\n6. To apply your backup plan and save your new instance configuration,\n click **Save**.\n\nWhat's next\n\n- Learn how to use your instance's backup plan to [schedule or create backups in a backup vault](/backup-disaster-recovery/docs/cloud-console/compute/compute-instance-backup).\n- Learn how to [restore an instance from a backup vault](/backup-disaster-recovery/docs/cloud-console/compute/compute-instance-restore)."]]