Restore a Volume from a Snapshot

This section describes how to restore a volume from a valid point-in-time snapshot.

Volume Restore from Point-in-Time Snapshots

The volume restore operation enables the resetting of volume data to a specified snapshot. Volumes can be restored from any valid point-in-time snapshot. All snapshots created after the snapshot being used for the volume restore are deleted after the restore operation has successfully completed. Volumes retain their size, in case the volume size is different from the snapshot size due to a volume resize operation.

How to Restore a Volume from a Snapshot

dctl volume restore

Restore a volume from a valid point-in-time snapshot.

dctl volume restore [command options] [arguments...]

Options

Option

Description

–latest-snapshot, -l

Restore a volume from the latest snapshot.

–source-snapshot <snapshot-name>,

-s <snapshot-name>

The source snapshot for the volume restore.

–assume-yes, -y

Assume yes for the confirmation prompt.

Examples

dctl volume restore vol-01 --latest-snapshot dctl volume restore vol-01 --source-snapshot snap-01

Note

Diamanti volumes need to be offline (detached) before restoring from a point-in-time snapshot.