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 Volumespage in the Google Cloud console.
-
Under Data protection, click Backup vaults.
-
In the Backup vaultspage, click Create.
-
In the Namefield, 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 Descriptionfield, enter a description for the backup vault.
-
Use the Regiondrop-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-regionto store backups in the same region as the volume.
-
Select Cross-regionto specify a different region for storing the backups. From the Destination regiondrop-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 retentioncheckbox.
-
Enter the minimum number of days the backups in the vault are retained in the Minimum enforced retention daysfield. 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: in the Encryptionsection, choose one of the following encryption key options:
-
Google-managed encryption key. This is the default option.
-
Customer-managed encryption key (CMEK)
-
For In-regionbackup, select a CMEK policy located in the same region as the backup.
-
For Cross-regionbackup, select a CMEK policy located in the destination region of the backup.
-
-
-
Optional: in the Labelssection, click Add labelto 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 an in-region backup vault with customer-managed encryption key (CMEK):
gcloud beta netapp backup-vaults create BACKUP_VAULT \ --location = LOCATION \ --backup-vault-type = IN_REGION \ --kms-config = projects/ PROJECT_ID /locations/ LOCATION /kmsConfigs/ KMS_NAME \ --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 cross-region backup vault with customer-managed encryption key (CMEK):
gcloud beta netapp backup-vaults create BACKUP_VAULT \ --location = LOCATION \ --backup-vault-type = CROSS_REGION \ --backup-region = REMOTE_LOCATION \ --kms-config = projects/ PROJECT_ID /locations/ REMOTE_LOCATION /kmsConfigs/ KMS_NAME \ --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.
-
-
KMS_NAME: the name of the CMEK policy. -
DESCRIPTION: the description for the backup vault.
For more options, see Google Cloud SDK documentation for NetApp Volumes .

