The freezer.storage.fslike Module

class freezer.storage.fslike.FsLikeStorage(storage_path, max_segment_size, skip_prepare=False)[source]

Bases: freezer.storage.physical.PhysicalStorage

add_stream(stream, package_name, headers=None)[source]
Parameters:
  • stream – data
  • package_name – path
  • headers – backup metadata infomation
Returns:

backup_blocks(backup)[source]
Parameters:backup (freezer.storage.base.Backup) –
Returns:
info()[source]
open(filename, mode)[source]
Parameters:
  • filename (str) –
  • mode (str) –
Returns:

prepare()[source]
write_backup(rich_queue, backup)[source]

Stores backup in storage :type rich_queue: freezer.streaming.RichQueue :type backup: freezer.storage.base.Backup