Base class for all backup drivers.
Bases: cinder.db.base.Base
Start a backup of a specified volume.
Delete a saved backup.
Export driver specific backup record information.
If backup backend needs additional driver specific information to import backup record back into the system it must overwrite this method and return it here as a dictionary so it can be serialized into a string.
Default backup driver implementation has no extra information.
Parameters: | backup – backup object to export |
---|---|
Returns: | driver_info - dictionary with extra information |
Import driver specific backup record information.
If backup backend needs additional driver specific information to import backup record back into the system it must overwrite this method since it will be called with the extra information that was provided by export_record when exporting the backup.
Default backup driver implementation does nothing since it didn’t export any specific data in export_record.
Parameters: |
|
---|---|
Returns: | nothing |
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.