Use the following instructions to create a backup policy using the Google Cloud console or Google Cloud CLI.
Create a new backup policy
Console
Go to NetApp Volumes page in the Google Cloud console.
Under Policies, click Backup policies.
In the Backup policies page, click Create.
In the Name field, enter a name for the backup policy. The name must be unique to the project.
Optional: in the Description field, enter a description for the backup policy.
Click the Region drop-down, select the region of the backup vault storing your backups. Your choice is permanent.
Using the Daily, Weekly, and Monthly tabs, configure your backup schedule:
For each interval (daily, weekly, and monthly), use the Backups to keep field to enter the amount of backups you want to keep.
Optional: under the Labels section, click Add label to enter relevant labels for reporting and querying purposes.
Click Create.
gcloud
gcloud netapp backup-policies create BACKUP_POLICY \ --location=LOCATION \ --description=DESCRIPTION \ --enabled=TRUE_OR_FALSE \ --daily-backup-limit=DAILY_BACKUP_LIMIT \ --weekly-backup-limit=WEEKLY_BACKUP_LIMIT \ --monthly_backup_limit=MONTHLY_BACKUP_LIMIT \ --labels=foo=bar
Replace the following information:
BACKUP_POLICY
: the name of the backup policy.LOCATION
: the location in which you want to create the backup policy.DESCRIPTION
: the description for the backup policy.TRUE_OR_FALSE
: mark asTRUE
to enable backups orFALSE
to disable backups.DAILY_BACKUP_LIMIT
: the number of daily backups in the backup policy.WEEKLY_BACKUP_LIMIT
: the number of weekly backups in the backup policy.MONTHLY_BACKUP_LIMIT
: the number of monthly backups in the backup policy.
For more options, see Google Cloud SDK documentation for NetApp Volumes.