Protecting your volumes against unintentional or accidental changes is an important component of data lifecycle management. Cloud Volumes Service provides volume snapshots to ensure that you can recover your data from such a change. Snapshots are local-space efficient. They are image copies of your current volume state. You can use a snapshot to revert a volume to a previous version or to restore to a new volume as a copy of your original volume.
Snapshots provide short-term protection for a volume. The following considerations apply:
Because snapshots are stored locally with the volume data, they persist as long as the volume remains. When a volume is deleted, its snapshots are also deleted. If you require longer-term protection for your volume, use backups. For details about backups, see Backing up and restoring a cloud volume.
A snapshot reflects the volume's state at a specific moment in time. Each subsequent snapshot captures the changes to the volume's state from the prior snapshot. These related volume snapshots are called a snapshot series. Because this snapshot series is a chain of related snapshots, reverting a volume to a prior state using a snapshot other than the most recent snapshot will result in the removal of any snapshots that existed after the selected snapshot.
Snapshots allow access to a prior state of the file system. They allow read access to data that has been deleted. The capacity required to store deleted files referenced by a snapshot is counted against the allocated capacity. See Snapshot space requirements.
Create a volume snapshot
If you want to schedule volume snapshots regularly, create a volume with a snapshot schedule or edit an existing volume to modify its snapshot schedule.
You can also manually create a volume snapshot. Both the general-purpose CVS and the CVS-Performance service types support snapshots.
- In the Cloud Console, go to the Snapshots page.
On the Create Snapshot page, complete the following fields:
- Name: Enter a unique name that describes the snapshot.
- Region: Specify the region where the volume you want to snapshot resides. If this is a CVS-service-type region, also select the zone.
- Volume: Identify the volume you want to snapshot from the list of available volumes.
Create or modify a snapshot policy
When you use automatic snapshots, older snapshots are removed based on the number that you have specified to keep. If you change an existing schedule, you might need to manually delete snapshots created on the previous schedule.
- In the Cloud Console, go to the Volumes page.
- On the volume you want to manage, click More, and then select Edit.
In the Edit File System page, click Show Snapshot Policy to expand the section.
Select Allow automatic snapshots.
For each snapshot schedule (Hourly, Daily, Weekly, or Monthly), specify the number of snapshots to keep and how often the system should create a snapshot. For example, every five minutes for Hourly, or every four hours for Daily. Times are expressed as UTC (Coordinated Universal Time).
Delete a snapshot
If you no longer need a snapshot, you can delete it. Both the general-purpose CVS and the CVS-Performance service types support this functionality.
In the Cloud Console, go to the Snapshots page.
- To delete individual snapshots, click More, and then select Delete.
- To delete multiple snapshots (up to 10), select the checkbox next to each snapshot you want to delete, and then click Delete.
The Delete Snapshot page displays information about the snapshot you are deleting. The page warns you that you cannot recover a snapshot after you delete it.
To complete the deletion of the snapshot, type the snapshot name and select Confirm.
- Reverting a volume using a snapshot
- Backing up and restoring a cloud volume
- Security considerations
- FAQs about NetApp Cloud Volumes Service for Google Cloud