Change your instance's backup plan

This document provides information about how to apply a backup plan, or change the backup plan that is applied, to your Compute Engine instance. You can configure your compute instance's backup plan to align your data protection strategy with your changing operational requirements.

Backup and DR backup plans let you define advanced backup strategies to store your compute instances in secure storage locations called backup vaults. Using the backup plan that's applied to your compute instance, you can create scheduled or on-demand backups of your instance in a backup vault.

Before you begin

Required roles

  • To get the permissions that you need to edit a compute instance's properties and change the associated backup plan, ask your administrator to grant you the following IAM roles :

    • To edit the compute instance: Compute Instance Admin (v1) (roles/compute.instanceAdmin.v1) on the project for the compute instance
    • To configure scheduled backups or run on-demand backups:

    For more information about granting roles, see Manage access to projects, folders, and organizations.

    You might also be able to get the required permissions through custom roles or other predefined roles.

  • If you want to back up a compute instance to a backup vault that is in a different project than the compute instance, then make sure that the Backup and DR Vault Service Agent for the project that contains the backup vault has permission to access compute instances in the compute instance's project. If the backup vault and compute instance are in the same project, then this permission is granted by default.

  • To ensure that Backup and DR Vault Service Agent has the necessary permissions to back up a Compute Engine instance to a backup vault, ask your administrator to grant the Backup and DR Compute Engine Operator (roles/backupdr.computeEngineOperator) IAM role to Backup and DR Vault Service Agent on the project for the Compute Engine instance.

Apply or change backup plans for an existing instance

You can apply or change backup plans for an existing compute instance by modifying the compute instance configuration on the Google Cloud console. If you change the backup plan that's applied to your compute instance, then your new backup plan must be from the same project and store the backup in the same backup vault as your existing plan.

  1. In the Google Cloud console, go to the VM instances page.

    Go to VM instances

  2. Click the name of the compute instance for which you want to apply or change the backup plan. The compute instance details page appears for the selected instance.

  3. Click Edit. The Edit page appears for your compute instance.

  4. Navigate to the Backup plan section and click Change plan.

  5. In the Select a backup plan pane that appears, do the following:

    1. In the Backup plan name column, click the name of the backup plan that you want to use.

    2. To confirm your choice of backup plan and return to the Edit page, click Apply.

  6. To apply your backup plan and save your new instance configuration, click Save.

What's next