freezer.storage.multiple module¶
- class freezer.storage.multiple.MultipleStorage(storages)¶
Bases:
freezer.storage.base.Storage
- create_dirs(path)¶
- download_freezer_meta_data(backup)¶
- get_file(from_path, to_path)¶
- get_level_zero(engine, hostname_backup_name, recent_to_date=None)¶
Gets backups by backup_name and hostname :type engine: freezer.engine.engine.BackupEngine :param hostname_backup_name: :type hostname_backup_name: str :type recent_to_date: int :param recent_to_date: :rtype: collections.Iterable[freezer.storage.base.Backup] :return: dictionary of level zero timestamps with attached storage
- info()¶
- meta_file_abs_path(backup)¶
- prepare()¶
Creates directories, containers :return: nothing
- put_engine_metadata(from_path, backup)¶
- Parameters
from_path –
backup (freezer.storage.base.Backup) –
- Returns
- put_file(from_path, to_path)¶
- Parameters
from_path (str) –
to_path (str) –
- put_metadata(engine_metadata_path, freezer_metadata_path, backup)¶
- Parameters
engine_metadata_path –
freezer_metadata_path –
backup (freezer.storage.base.Backup) –
- Returns
- upload_freezer_meta_data(backup, meta_dict)¶
- write_backup(rich_queue, backup)¶
- Parameters
rich_queue –
backup (freezer.storage.base.Backup) –
- Returns