This page provides instructions for how to manage your volumes' backup policies.
Google Cloud NetApp Volumes supports the following management features:
Edit backup policy: edit existing backup policies, including changing descriptions, backup schedules, and labels.
Assign volume: assign eligible volumes to existing backup policies.
Create similar backup policy: a convenient way to copy a policy to a different region.
Resume: resume a paused backup policy to re-activate the configured backup schedule configurations and all automatic backup schedules.
Pause: pause a backup policy to temporarily disable the backup policy's automatic backup schedule.
Delete: delete a backup policy. Before you can delete a backup policy, you need to unassign all volumes.
Unassign volume: Unassign volumes associated with a backup policy to stop scheduled backups for the volumes.
Considerations
Pausing a backup policy stops backups for all associated volumes.
Resuming a backup policy reactivates scheduled backups for all associated volumes.
To delete a backup policy, you must unassign all associated volumes.
Destination volumes of a volume replication can't create scheduled backups. Scheduled backups can be created only on the source volume. Before running reverse and resume replication, you need to disable scheduled backups from the volume that becomes new destination volume. This disables the backups. Its recommended to configure the scheduled backups on the volume that becomes new source volume.
View backup policy details
Console
Go to NetApp Volumes page in the Google Cloud console.
Click Backup policies from the Policies menu.
Click the backup policy you want to see details for.
The backup policies page opens. You can view the following details:
Resource type: displays which NetApp Volumes feature you're viewing details for.
State: the current status of your backup policy.
Resource state: the state of your backup policy.
Description: the description you provided for the backup policy.
Name: the name of your backup policy.
Region: the location of your backup policy.
Created: the date and time your backup policy was created.
Labels: lists labels associated with your volume.
Backup schedule: displays the appointed backup schedule of your backup policy.
Associated volumes: lists the volumes you associated with the backup policy.
Status: the backup policy status, including whether it is enabled or disabled.
Name: the name of the backup policy.
Backup policy allowed: displays whether the backup policy is allowed on the volume or disallowed.
Location: location of your volume.
Utilization: displays how much space has been consumed by the volume.
Labels: the list of labels associated with the backup policy.
Show more menu: actions you can perform on the volume including unassigning the volume or viewing more details.
gcloud
To view all the backup policies:
gcloud netapp backup-policies list
To lookup a specific backup policy:
gcloud netapp backup-policies describe POLICY_NAME \ --location=LOCATION
Replace the following information:
POLICY_NAME
: the name of the backup policy.LOCATION
: the location of the backup policy.
Edit an existing backup policy
Use the following instructions to edit an existing backup policy using either the Google Cloud console or Google Cloud CLI:
Console
Go to the NetApp Volumes page in the Google Cloud console.
Click Backup policies from the Policies menu.
In the Backup policies page, click the backup policy you want to edit.
Select the volume you want to change backup policy details for.
In the backup policy's details page, click Edit.
In the Edit backup policy page, make the following changes to your backup policy:
Description: use the Description field update the description of the backup policy.
Backup schedule: use the Backup schedule tabs to update the number of daily, weekly, and monthly backups to retain.
Labels: use the Labels section and click Add label to edit existing labels or create new labels.
Click Save.
gcloud
Update a backup policy:
gcloud netapp backup-policies update BACKUP_POLICY_NAME \ --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 \ --update-labels=foo=bar \ --remove-labels=foo=bar
Replace the following information:
BACKUP_POLICY_NAME
: 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.ENABLED
: lets the backup policy update as directed.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.
Assign a volume to an existing backup policy
Use the following instructions to assign a volume to an existing backup policy using either the Google Cloud console or Google Cloud CLI:
Console
Go to the NetApp Volumes page in the Google Cloud console.
Click Volumes from the Storage menu.
In the Volumes page, select the volume you want to create a backup for.
In the volume details page, click the Backups tab.
Click Assign backup policy.
Select the backup policy you want to assign to the volume from the Backup policy menu.
Select the backup vault you want to store your backups in from the Backup vault menu.
Click Assign.
gcloud
To assign a backup policy to a volume, add the backup policy to the volume configuration:
gcloud netapp volumes update VOLUME_NAME \ --location=LOCATION \ --backup-config=backup-policies=POLICY_RESOURCE_PATH,enable-scheduled-backups=TRUE_OR_FALSE
Replace the following information:
VOLUME_NAME
: the name of the volume.LOCATION
: the location of the volume.POLICY_RESOURCE_PATH
: full resource path of the backup policy. Format asprojects/PROJECT_ID/locations/POLICY_LOCATION/backupPolicies/POLICY_NAME
Assign a backup policy for a new volume
Use the following instructions to assign a backup policy for a new volume using either the Google Cloud console or Google Cloud CLI:
Console
Go to NetApp Volumes page in the Google Cloud console.
Click Volumes from the Storage menu.
In the Volumes page, click Create.
Select the Allow scheduled snapshots checkbox.
Using the Hourly, Daily, Weekly, or Monthly, tabs, select a schedule for automated snapshots.
Check the Allow scheduled backups checkbox from the Backup configuration section.
Use the Backup policy menu to select an existing backup policy or create a new backup policy.
Use the Backup vault menu to select a backup location from the Backup location section.
Optional: click Add label to add relevant labels from the Labels section.
Click Create.
gcloud
If you want to configure backup as part of the volume creation, add the
backup-config
parameter to your volume creation command:
gcloud netapp volumes create VOLUME_NAME \ --location=LOCATION \ --storage-pool=STORAGE_POOL \ --capacity=1024 \ --share-name=SHARE_NAME \ --protocols=PROTOCOL \ --backup-config=backup-policies=POLICY_RESOURCE_PATH,backup-vault=VAULT_RESOURCE_PATH,enable-scheduled-backups=TRUE_OR_FALSE
Replace the following information:
VOLUME_NAME
: the name of the volume.LOCATION
: the location of the volume.STORAGE_POOL
: the storage pool to create the volume in.CAPACITY
: the capacity of the volume.SHARE_NAME
: the NFS export path or SMB share name of the volume.PROTOCOLS
: the protocol for the volume.VAULT_RESOURCE_PATH
: full resource path of the backup vault. Format asprojects/PROJECT_ID/locations/VAULT_LOCATION/backupVaults/VAULT_NAME
POLICY_RESOURCE_PATH
: full resource path of the backup policy. Format asprojects/PROJECT_ID/locations/POLICY_LOCATION/backupPolicies/POLICY_NAME
For more information, see Google Cloud SDK documentation for NetApp Volumes.
Unassign a backup policy from a volume
Go to the NetApp Volumes page in the Google Cloud console.
Click Volumes from the Storage menu.
In the Volumes page, select the volume you want to change backup policy details for.
In the volume details page, click the Backups tab.
Select Manage backup policy.
Click Unassign backup policy.
A message appears confirming that you are unassigning the backup policy for the specific volume. To confirm, click Unassign.
Pause backup policy for volume
Use the following instructions to pause a backup policy for volume using either the Google Cloud console or Google Cloud CLI:
Console
Go to the NetApp Volumes page in the Google Cloud console.
Click Volumes from the Storage menu.
In the Volumes page, select the volume you want to change backup policy details for.
In the volume details page, click the Backups tab.
Select Manage backup policy.
Clear the Allow scheduled backups checkbox.
The policy pauses for the volume.
Click Save.
gcloud
gcloud netapp volumes update VOLUME_NAME \ --location=LOCATION \ --backup-config=enable-scheduled-backups=FALSE
Replace the following information:
VOLUME_NAME
: the name of the volume.LOCATION
: the location of the volume.
Resume a paused backup policy
Use the following instructions to resume a paused backup policy using either the Google Cloud console or Google Cloud CLI:
Console
Go to the NetApp Volumes page in the Google Cloud console.
Click Backup policies from the Policies menu.
In the Backup policies page, select the paused backup policy you want to resume.
Click Resume.
gcloud
gcloud netapp volumes update VOLUME_NAME \ --location=LOCATION \ --backup-config=enable-scheduled-backups=TRUE
Replace the following information:
VOLUME_NAME
: the name of the volume.LOCATION
: the location of the volume.
Delete a backup policy
You can delete a backup policy if the policy has no associated volumes. Use the following instructions to delete a backup policy using either the Google Cloud console or Google Cloud CLI.
Console
Go to NetApp Volumes in the Google Cloud console.
Click Backup policies from the Policies menu.
In the Backup policies page, select the backup policy you want to delete.
In the backup policy details page, click Delete.
A message appears that prompts you to confirm deletion.
In the Backup policy name field, enter the name of the backup policy you want to delete.
Click Delete.
gcloud
Delete a backup policy:
gcloud netapp backup-policies delete BACKUP_POLICY_NAME \ --location=LOCATION
Replace the following information:
BACKUP_POLICY_NAME
: the name of the backup policy.LOCATION
: the location from which you want to delete the policy.
What's next
Read about volume replication.