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']
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']
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']
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']
def __init__(self, config, type="MySQL"): BackupSource.__init__(self, config, type, "sql.gpg") self.__common_init__(config)
def __init__(self, config): BackupSource.__init__(self, config, "RDS", "sql.gpg") self.__common_init__(config)
def __init__(self, config): BackupSource.__init__(self, config, "PostgreSQL", "sql.gpg") self.__common_init__(config)
def __init__(self, config): BackupSource.__init__(self, config, "MySQL", "sql.gpg") self.__common_init__(config)
def __init__(self, config, type="FolderSSH"): BackupSource.__init__(self, config, type, "tar.gpg") self.__common_init__(config)