Protect backup metadata
Export and store backup metadata in a safe, offsite location to ensure recovery after a Block Storage service database loss. For incremental backups, you must import the metadata of all preceding backups before you can restore the volume.
Export backup metadata Copy linkLink copied!
You can export the metadata of a backup and store it in a file so that you can restore the volume backup even if the Block Storage database suffers a catastrophic loss.
About this task Copy linkLink copied!
Procedure Copy linkLink copied!
Results Copy linkLink copied!
- Edit the file to see that the values of the
backup_serviceandbackup_url, match the values provided by this command:$ openstack volume backup record export -f yaml <backup>For example:
$ openstack volume backup record export -f yaml vol1bu2 backup_service: cinder.backup.drivers.ceph.CephBackupDriver backup_url: eyJkcml2 … YWxzZX0=- Exit the
openstackclientpod:$ exit
- Exit the
Import backup metadata Copy linkLink copied!
If you export and save the metadata of a volume backup, then you can import this metadata and use the backup if there is a loss of the Block Storage service database.
Before you begin Copy linkLink copied!
- You must provide the
backup_serviceandbackup_urlmetadata values of this backup. For more information see Export backup metadata. - A Block Storage database that does not already contain this backup.
About this task Copy linkLink copied!
You can also use this procedure to re-create a backup that was deleted.