This page provides instructions for how to create a new volume from an existing backup.
Considerations
You can restore backups in in-region backup vaults to any pool within the backup region.
For backups stored in cross-region backup vaults in Preview, you can only restore backups locally, either from the source vault to the source region or from the destination vault to the destination region. You can't restore to any other region. Note that this isn't available for the Flex service level.
Create a new volume from a backup
Console
Go to NetApp Volumes page in the Google Cloud console.
Under Data protection, click Backups.
In the Backups page, select the backup you want to open.
At the top of the page, click Create new volume from backup.
In the Volume name field, enter a name for the volume. The 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 volume.
Under Storage pool details, select an existing storage pool or create a new storage pool.
For backups in in-region vaults, all storage pools in the region are available.
For backups in cross-region vaults, all storage pools in the Standard, Premium, and Extreme service levels are available.
Under Volume details, enter a share name in the Share name field. The share name must be unique to the region.
In the Capacity field, enter the capacity of the volume.
For backups where the source volume still exists, the Capacity field is auto-populated with the source volume size and can't be changed.
You can use Google Cloud CLI command to specify a different size.
For backups where the source volume no longer exists, specify the new volume size in GiB. The capacity must be larger than the Volume usage size (restored) size of the backup.
Optional: Select Enable auto-tiering if the storage pool you are restoring to has auto-tiering enabled. You can also enable this later in volume settings.
Under the Protocol(s) drop-down menu, select the protocol.
For backups where the source volume still exists, the Protocol(s) field is auto-populated with the source volume protocols and can't be changed.
For backups where the source volume no longer exists, specify the same protocols as the original source volume.
For NFS volumes, complete the following steps:
Click Block volume from deletion when clients are connected in the Configuration for selected protocol(s) for volumes used as GCVE datastores.
Under Export rules, complete the following steps:
Click Add rule to add a list of allowed clients, their associated access level (read and write, or read only), and their root access. For more information, see Volume access control using export policies.
Click Done.
For SMB volumes, complete the following steps:
For backups where the source volume still exists, SMB protocol options aren't displayed. However, you can change them later after the volume is created, or use the Google Cloud CLI command to restore the volume and specify the SMB options.
For backups where the source volume no longer exists, choose any optional protocol configurations. For more information about protocol options, see Create a new volume.
Optional: under Snapshot configuration, configure a schedule for volume snapshots:
If you want to make your snapshot directory visible to clients, select the Make snapshot directory visible checkbox.
If you want to allow scheduled snapshots, select the Allow scheduled snapshots checkbox.
Using the Hourly, Daily, Weekly, and Monthly tabs, configure your snapshot schedule:
For each interval (hourly, daily, weekly, or monthly), use the Snapshots To Keep field to enter the amount of snapshots you want to keep. Use the Hour (UTC) and Minute (UTC) fields to enter when the snapshots will be retained.
Optional: under Backup configuration, assign a backup policy and backup vault to set up scheduled backups for the new volume.
Select the Allow scheduled backups checkbox.
Use the Backup policy drop-down to choose an existing backup policy or create a new one.
Use the Backup vault drop-down to choose an existing backup vault or create a new one.
Under the Labels section, click Add labels to add relevant labels to your volume.
Click Create.
gcloud
Run the following command to create a new volume from a backup:
gcloud netapp volumes create VOLUME_NAME \ --location=LOCATION \ --capacity=CAPACITY \ --protocols=PROTOCOLS \ --share-name=SHARE_NAME \ --storage-pool=STORAGE_POOL \ --source-backup=SOURCE_BACKUP \ --description=DESCRIPTION
Replace the following information:
VOLUME_NAME
: the name of the new volume to restore the backup to.LOCATION
: the location you want to create the volume in.CAPACITY
: the size for the new volume. Should be bigger or equal to the Volume usage size (restored) of the backup.PROTOCOLS
: used for the original volume the backup was taken from.SHARE_NAME
: the share name for the new volume.STORAGE_POOL
: name of the storage pool withinLOCATION
to host the volume.SOURCE_BACKUP
: resource name of the backup to restore. Format as projects/PROJECT_ID
/locations/LOCATION
/backupVaults/BACKUP_VAULT_ID
/ backups/BACKUP_ID
DESCRIPTION
: the description for the volume.
You can add other protocol-specific options such as export policies or snapshot policies. For more options, see Google Cloud SDK documentation for NetApp Volumes.