restore
Restore a Snapshot onto a Volume (destructive overwrite)
Usage
ionosctl compute snapshot restore [flags]Aliases
For snapshot command:
[ss snap]For restore command:
[r]Description
Use this command to write the contents of a Snapshot back onto an existing target Volume, rolling that Volume to the point in time the Snapshot captured.
This is a DESTRUCTIVE, in-place overwrite: the target Volume's current data is replaced by the Snapshot image, so anything written since is lost. You are asked to confirm (use --force to skip the prompt). The Snapshot and the target Volume must be at the same LOCATION, and the target Volume should be at least as large as the Snapshot.
The target Volume is identified by its Data Center Id + Volume Id; it does NOT have to be the Volume the Snapshot was originally taken from - any compatible Volume at the same location works. To spin up a brand-new Volume from a Snapshot instead of overwriting one, pass the Snapshot Id as the image when creating a Volume rather than using restore.
Use --wait (-w) to wait until the restore completes and the Volume is AVAILABLE.
Required values to run command:
Datacenter Id
Volume Id
Snapshot Id
Options
Examples
Last updated
Was this helpful?