Create a new volume from an existing backup

This page provides instructions for how to create a new volume from an existing backup.

Create a new volume from a backup

Console

  1. Go to NetApp Volumes page in the Google Cloud console.

    Go to NetApp Volumes

  2. Under Data protection, click Backups.

  3. 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.

  4. Click Create volume from backup.

  5. 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.

  6. Optional: in the Description field, enter a description for the volume.

  7. Under Storage pool details, select an existing storage pool in the same region as a source backup or create a new storage pool.

  8. Under Volume details, enter a share name in the Share name field. The share name must be unique to the region.

  9. In the Capacity field, enter the storage pool capacity in GiB. The Capacity field inherits the capacity listed in the original volume.

  10. 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.

  11. 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.

  12. Optional: under Export rules, complete the following steps:

    1. Add a list of allowed clients, their access level (read and write or read only), and configure root access.

    2. Click Done.

  13. Optional: Under Snapshot schedule, configure a schedule for volume snapshots:

    1. If you want to make your snapshot directory visible to clients, select the Make snapshot directory visible checkbox.

    2. If you want to allow scheduled snapshots, select the Allow scheduled snapshots checkbox.

    3. 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.

  14. Optional: Under Backup configuration, assign a backup policy and backup vault to set up scheduled backups for the new volume while creating it.

    1. If you want to allow scheduled backups, select the Allow scheduled backups checkbox.

    2. Use the Backup policy drop-down to choose an existing backup policy or create a new one.

    3. Use the Backup vault drop-down to choose an existing backup vault or create a new one.

  15. Under the Labels section, click Add labels to add relevant labels to your volume.

  16. 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 within LOCATION 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.

What's next

Manage your backups.