freezer.storage.fslike module

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

Bases: freezer.storage.physical.PhysicalStorage

add_stream(stream, package_name, headers=None)
Parameters
  • stream – data

  • package_name – path

  • headers – backup metadata information

Returns

backup_blocks(backup)
Parameters

backup (freezer.storage.base.Backup) –

Returns

info()
abstract open(filename, mode)
Parameters
  • filename (str) –

  • mode (str) –

Returns

prepare()

Creates directories, containers :return: nothing

write_backup(rich_queue, backup)

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