ArchiverManipulator and its helper classes.
ArchiverManipulator class.
Bases: builtins.object
Performs actions with backups.
Uses _TarArchiverProviderBase-like services to manipulate with or create backups.
Note
backupInformationProvider is not updated by this class.
Parameters: |
|
---|---|
Raises RuntimeError: | |
If the archiver service could not be created. |
Runs the archiver and creates a backup.
Returns: | Path to the created backup. |
---|---|
Return type: | str |
Raises: |
|
Returns True if the passed option is supported by the current configuration of this instance.
Whether an option is supported or not depends on the archiver type set in the archive specification file that is currently attached.
Parameters: | option (Option) – The option which shall be tested for support. |
---|---|
Returns: | True if the passed option is supported; False otherwise. |
Return type: | bool |
Saves all the information required for backup level restarting to the persistent storage.
Note
This method should be called only once after the backup was created.
Parameters: | backupFilePath (str) – Path to the created backup. |
---|
Deletes all data stored for the archive named archiveName if any.
See also: _BackupInformationProvider.getStoredArchiveNames()
Parameters: |
|
---|---|
Returns: | True if data was purged; False otherwise. |
Return type: | bool |
Raises: |
|
_BackupKeepingManipulations class.
Bases: builtins.object
Operations for keeping old backups.
Parameters: |
|
---|
Keeps old backups according configuration settings.
Parameters: | backupDefinition (BackupDefinition) – Provides information about backup which shall be kept. It has to be populated from the same _ArchiveSpec instance as passed to the constructor. |
---|
Keeps old incremental backups according configuration settings.
Parameters: | backupDefinition (BackupDefinition) – Provides information about backup which shall be kept. It has to be populated from the same _ArchiveSpec instance as passed to the constructor. |
---|
_KeepingIdOperations class.