Creating and managing volume snapshots

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.

Considerations

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.

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.

  1. In the Cloud Console, go to the Snapshots page.
  2. Click Create.

    List of existing snapshots

  3. On the Create Snapshot page, complete the following fields:

    Create snapshots user interface

    • 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.
  4. Click Create.

Create or modify a snapshot policy

  1. In the Cloud Console, go to the Volumes page.
  2. On the volume you want to manage, click More, and then select Edit.
  3. In the Edit File System page, click Show Snapshot Policy to expand the section.

    Snapshot policy user interface

  4. Select Allow automatic snapshots.

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

  6. Click Save.

    Delete snapshot warning

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.

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

    List of existing snapshots

  2. Confirm the delete snapshot action by typing the snapshot name and clicking Delete.

What's next