This page provides instructions for how to create a backup vault.
Create a backup vault
Use the following instructions to create a backup vault using the Google Cloud console or Google Cloud CLI:
Console
- Go to NetApp Volumes page in the Google Cloud console. 
- Under Data protection, click Backup vaults. 
- In the Backup vaults page, click Create. 
- In the Name field, enter a name for the backup vault. Your backup vault name must be unique to the region, use lowercase letters, numbers, hyphens, and start with a letter. Your choice is permanent. 
- Optional: in the Description field, enter a description for the backup vault. 
- Use the Region drop-down menu to select a location for the backup vault. Make sure that the location you choose is the same region where the volumes you want to back up are located. 
- Under Type, select one of the following: - Select In-region to store backups in the same region as the volume. 
- Select Cross-region to specify a different region for storing the backups. From the Destination region drop-down menu, select your destination region. - To view details about the types, click Compare the backup vault types. 
 
- Optional: under Prevent backup deletion, complete the following steps: - Select the Enable minimum enforced retention checkbox. 
- Enter the minimum number of days the backups in the vault are retained in the Minimum enforced retention days field. The value must be between 2 to 5475 days. This value can only be increased, but can't be decreased. 
- Under Types of backups to retain, select the backup types you want to retain from the following. You must select at least one backup type. - Daily 
- Weekly 
- Monthly 
- Manual 
 
 
- Optional: under the Labels sections, click Add label to enter relevant labels for reporting and querying purposes. 
- Click Create. 
gcloud
Create an in-region backup vault:
gcloud netapp backup-vaults create BACKUP_VAULT \ --location=LOCATION \ --backup-vault-type=IN_REGION \ --description=DESCRIPTION \ --labels=foo=bar
Create a cross-region backup vault:
gcloud beta netapp backup-vaults create BACKUP-VAULT \ --location=LOCATION \ --backup-vault-type=CROSS_REGION \ --backup-region=REMOTE_LOCATION \ --description=DESCRIPTION \ --labels=foo=bar
Create a backup vault with deletion prevention:
gcloud beta netapp backup-vaults create BACKUP-VAULT \ --location=LOCATION \ --backup-region=REMOTE_LOCATION \ --backup-retention-policy=\ backup-minimum-enforced-retention-days=DAYS, \ daily-backup-immutable=FALSE, \ weekly-backup-immutable=TRUE, \ monthly-backup-immutable=FALSE, \ manual-backup-immutable=FALSE, \ --description=DESCRIPTION \ --labels=foo=bar
Replace the following information:
- BACKUP-VAULT: the name of the backup vault.
- LOCATION: the location in which you want to create the vault.
- REMOTE_LOCATION: the location of the cross-region destination backup vault.
- BACKUP_RETENTION_POLICY: a parameter block describing the details of the configuration:- Backup-minimum-enforced-retention-days: number of days to retain the specified backup types. 
- Available backup types are: daily-backup-immutable, weekly-backup-immutable, monthly-backup-immutable, and manual-backup-immutable. To enable the retention period for a specific type, set its value to true. Note that at least one backup type must have its retention period enabled. When you enable a backup type, you can't disable it. 
 
- DESCRIPTION: the description for the backup vault.
For more options, see Google Cloud SDK documentation for NetApp Volumes.