Base class for all backup drivers.
Bases: cinder.db.base.Base
Start a backup of a specified volume.
Delete a saved backup.
Export backup record.
Default backup driver implementation. Serialize the backup record describing the backup into a string.
Parameters: | backup – backup entry to export |
---|
:returns backup_url - a string describing the backup record
Import and verify backup record.
Default backup driver implementation. De-serialize the backup record into a dictionary, so we can update the database.
Parameters: | backup_url – driver specific backup record string |
---|
:returns dictionary object with database updates
Restore a saved backup.
Bases: cinder.backup.driver.BackupDriver
Verify that the backup exists on the backend.
Verify that the backup is OK, possibly following an import record operation.
Parameters: | backup – backup id of the backup to verify |
---|---|
Raises : | InvalidBackup, NotImplementedError |
Bases: cinder.db.base.Base
Get volume metadata.
Returns a json-encoded dict containing all metadata and the restore version i.e. the version used to decide what actually gets restored from this container when doing a backup restore.
Restore volume metadata to a volume.
The json container should contain a version that is supported here.