The freezer.engine.tar.tar Module

  1. Copyright 2014,2015 Hewlett-Packard Development Company, L.P.

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Freezer general utils functions

class freezer.engine.tar.tar.TarEngine(compression, symlinks, exclude, storage, max_segment_size, encrypt_key=None, dry_run=False)[source]

Bases: freezer.engine.engine.BackupEngine

backup_data(backup_path, manifest_path)[source]
static check_process_output(process, function)[source]

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()[source]
name
restore_level(restore_path, read_pipe, backup, except_queue)[source]

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: