freezer.engine.tar.tar module

freezer.engine.tar.tar module

Freezer general utils functions

class freezer.engine.tar.tar.TarEngine(compression, symlinks, exclude, storage, max_segment_size, encrypt_key=None, dry_run=False, **kwargs)

Bases: freezer.engine.engine.BackupEngine

backup_data(backup_resource, manifest_path)
Parameters:
  • backup_path
  • manifest_path
Returns:

static check_process_output(process, function)

Check process stderr and return code to determine if error occurred.

Check process stderr for any non-empty value. Check process return code for any non-zero value. Log error message and raise an exception if error occurred.

Parameters:
  • process – the multiprocessing process to check
  • function – a string: (‘Restore’ | ‘Backup’) for error message
Returns:

None – Do nothing and return None if no error occurred

Raises:

Exception – Raise Exception if error occurred

metadata(*args)
name
Return type:str
Returns:Engine name
restore_level(restore_resource, read_pipe, backup, except_queue)

Restore the provided file into backup_opt_dict.restore_abs_path Decrypt the file if backup_opt_dict.encrypt_pass_file key is provided

Parameters:
Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.