Esempio n. 1
0
 def __init__(self, config):
     BackupSource.__init__(self, config, "Snapshot", None)
     self.vol = config['volume_id']
     self.datestr = datetime.datetime.utcnow().strftime("%Y-%m-%d")
     self.az = config['availability_zone']
     self.aws_access_key = config['credentials']['aws_access_key_id']
     self.aws_secret_key = config['credentials']['aws_secret_access_key']
Esempio n. 2
0
 def __init__(self, config, type="Snapshot"):
     BackupSource.__init__(self, config, type, None)
     self.vol = config['volume_id']
     self.datestr = datetime.datetime.utcnow().strftime("%Y-%m-%d")
     self.az = config['availability_zone']
     self.aws_access_key = config['credentials']['aws_access_key_id']
     self.aws_secret_key = config['credentials']['aws_secret_access_key']
Esempio n. 3
0
 def __init__(self, config, type="LVM"):
     BackupSource.__init__(self, config, type, "vol.gpg")
     self.sshhost = config['sshhost']
     self.sshuser = config['sshuser']
     self.vg_name = config['vg_name']
     self.lv_name = config['lv_name']
     self.size = config['size']
     self.retain_snapshots = config['retain_snapshots']
Esempio n. 4
0
 def __init__(self, config):
     BackupSource.__init__(self, config, "Folder", "tar.gpg")
     self.path = config['path']
     self.excludes = []
     if 'excludes' in config:
         self.excludes = config['excludes']
Esempio n. 5
0
 def __init__(self, config, type="MySQL"):
     BackupSource.__init__(self, config, type, "sql.gpg")
     self.__common_init__(config)
Esempio n. 6
0
 def __init__(self, config):
     BackupSource.__init__(self, config, "RDS", "sql.gpg")
     self.__common_init__(config)
Esempio n. 7
0
 def __init__(self, config):
     BackupSource.__init__(self, config, "PostgreSQL", "sql.gpg")
     self.__common_init__(config)
Esempio n. 8
0
 def __init__(self, config):
     BackupSource.__init__(self, config, "MySQL", "sql.gpg")
     self.__common_init__(config)
Esempio n. 9
0
 def __init__(self, config, type="FolderSSH"):
     BackupSource.__init__(self, config, type, "tar.gpg")
     self.__common_init__(config)