freezer.storage.physical module¶
- class freezer.storage.physical.PhysicalStorage(storage_path, max_segment_size, skip_prepare=False)¶
Bases:
freezer.storage.base.Storage
Backup like Swift, SSH or Local. Something that represents real storage. For example MultipleStorage is not physical.
- abstract backup_blocks(backup)¶
- Parameters
backup (freezer.storage.base.Backup) –
- Returns
- get_level_zero(engine, hostname_backup_name, recent_to_date=None)¶
Gets backups by backup_name and hostname
- Parameters
engine (freezer.engine.engine.BackupEngine) – Search for backups made by specified engine
hostname_backup_name (str) – Search for backup with specified name
recent_to_date (int) –
- Return type
- Returns
dictionary of level zero timestamps with attached storage
- abstract listdir(path)¶
- Parameters
path (str) –
- Return type
collections.Iterable[str]
- metadata_path(engine, hostname_backup_name)¶
- put_metadata(engine_metadata_path, freezer_metadata_path, backup)¶
- Parameters
engine_metadata_path –
freezer_metadata_path –
backup (freezer.storage.base.Backup) –
- Returns
- abstract rmtree(path)¶