This page provides instructions for how to create a new volume from an existing backup.
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, navigate to the backup you want to create a new volume from and click the Show more icon to expand the menu.
Click Create volume from backup.
In the Backup 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 in the same region as a source backup or create a new storage pool.
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 volume capacity in GiB. The Capacity field inherits the capacity listed in the original volume.
Use the Protocol(s) drop-down menu to select the protocol type. The Protocol(s) drop-down inherits the protocol listed in the original volume.
Click Block volume from deletion when clients are connected in the Configuration for selected protocol(s) for volumes used as GCVE datastores. This setting is permanent.
Optional: under Export rules, complete the following steps:
Add a list of allowed clients, their access level (read and write or read only), and configure root access.
Click Done.
Optional: Under Snapshot schedule, 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 while creating it.
If you want to allow scheduled backups, 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
: the protocols for the new volume.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.
For more options, see Google Cloud SDK documentation for NetApp Volumes.