Пример #1
0
 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)
Пример #2
0
 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 = {}
Пример #3
0
 def __init__(self, output):
     BaseClass.__init__(self, output)
     self._filesystems = {}
     self.update()
Пример #4
0
 def __init__(self, output, config):
     BaseClass.__init__(self, output)
     self._cfg = config
     self._ipcalc = IPCalc()
Пример #5
0
 def __init__(self, output):
     BaseClass.__init__(self, output)
Пример #6
0
 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'])