def __init__(self, output, filesystems, use_snapshots='auto', snap_size=1, vg_name=None, snap_dir='/.snapshot'): BaseClass.__init__(self, output) self._filesystems = filesystems self._vg_name = vg_name self._snap_size = snap_size self._snap_dir = snap_dir self.setup_snapshots(use_snapshots)
def __init__(self, output, cfg_dir='/etc/rbackup'): BaseClass.__init__(self, output) self._cfg_dir = cfg_dir self._cfg_file = cfg_dir + '/config.yaml' self._identity = cfg_dir + '/id_rsa' self._config = {}
def __init__(self, output): BaseClass.__init__(self, output) self._filesystems = {} self.update()
def __init__(self, output, config): BaseClass.__init__(self, output) self._cfg = config self._ipcalc = IPCalc()
def __init__(self, output): BaseClass.__init__(self, output)
def __init__(self, output, config): BaseClass.__init__(self, output) self._cfg = config self._destination = 'rsync://{0}/{1}'.format( self._cfg['remote_host'], self._cfg['remote_path'])