Backup driver with ‘chunked’ backup operations.
Bases: BackupDriver
Backup driver that supports ‘chunked’ backups.
Delete object from container.
container – The container to modify.
object_name – The object name to delete.
Get container entry names.
container – The container from which to get entries.
prefix – The prefix used to match entries.
Return extra metadata to use in prepare_backup.
This method allows for collection of extra metadata in prepare_backup() which will be passed to get_object_reader() and get_object_writer(). Subclass extensions can use this extra information to optimize data transfers.
- returns:
json serializable object
Returns a reader object for the backed up chunk.
container – The container to read from.
object_name – The object name to read.
extra_metadata – Extra metadata to be included.
Returns a writer which stores the chunk data in backup repository.
container – The container to write to.
object_name – The object name to write.
extra_metadata – Extra metadata to be included.
A context handler that can be used in a “with” context.
Create the container if needed. No failure if it pre-exists.
container – The container to write into.
Allows sub-classes to override container name.
This method exists so that sub-classes can override the container name as it comes in to the driver in the backup object. Implementations should return None if no change to the container name is desired.
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.