Back up and restore volumes
The cinder command-line interface provides the tools for creating a
volume backup. You can restore a volume from a backup as long as the backup's associated
database information (or backup metadata) is intact in the Block Storage database.
Run this command to create a backup of a volume:
$ cinder backup-create VOLUME
Where VOLUME is the name or ID of the volume.
This command also returns a backup ID. Use this backup ID when restoring the volume:
$ cinder backup-restore BACKUP_ID
Because volume backups are dependent on the Block Storage database, you must also back up
your Block Storage database regularly to ensure data recovery.
Alternatively, you can export and save the metadata of selected volume backups. Doing so
precludes the need to back up the entire Block Storage database. This is useful if you need
only a small subset of volumes to survive a catastrophic database failure.
For more information about how to export and import volume backup metadata, see .