freezer.storage.ssh module

freezer.storage.ssh module

class freezer.storage.ssh.SshStorage(storage_path, remote_username, remote_ip, port, max_segment_size, ssh_key_path=None, remote_pwd=None)

Bases: freezer.storage.fslike.FsLikeStorage

backup_blocks(backup)
Parameters:backup (freezer.storage.base.Backup) –
Returns:
create_dirs(path)

Change to this directory, recursively making new folders if needed. Returns True if any folders were created.

get_file(from_path, to_path)
init()
listdir(directory)
Parameters:path (str) –
Return type:collections.Iterable[str]
open(filename, mode)
Parameters:
  • filename (str) –
  • mode (str) –
Returns:

put_file(from_path, to_path)
Parameters:
  • from_path (str) –
  • to_path (str) –
read_metadata_file(path)
rmtree(path)
Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.