示例#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']
示例#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']
示例#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']
示例#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']
示例#5
0
 def __init__(self, config, type="MySQL"):
     BackupSource.__init__(self, config, type, "sql.gpg")
     self.__common_init__(config)
示例#6
0
 def __init__(self, config):
     BackupSource.__init__(self, config, "RDS", "sql.gpg")
     self.__common_init__(config)
示例#7
0
 def __init__(self, config):
     BackupSource.__init__(self, config, "PostgreSQL", "sql.gpg")
     self.__common_init__(config)
示例#8
0
文件: mysql.py 项目: rossigee/backups
 def __init__(self, config):
     BackupSource.__init__(self, config, "MySQL", "sql.gpg")
     self.__common_init__(config)
示例#9
0
 def __init__(self, config, type="FolderSSH"):
     BackupSource.__init__(self, config, type, "tar.gpg")
     self.__common_init__(config)