Example #1
0
 def __init__(self, config):
     BackupDestination.__init__(self, config)
     self.bucket = config.get('s3', 'bucket')
     try:
         self.az = config.get('s3', 'availability_zone')
     except:
         self.az = config.get_or_envvar('defaults', 'availability_zone', 'AWS_AVAILABILITY_ZONE')
     try:
         self.aws_key = config.get('s3', 'aws_access_key_id')
     except:
         self.aws_key = config.get_or_envvar('defaults', 'aws_access_key_id', 'AWS_ACCESS_KEY_ID')
     try:
         self.aws_secret = config.get('s3', 'aws_secret_access_key')
     except:
         self.aws_secret = config.get_or_envvar('defaults', 'aws_secret_access_key', 'AWS_SECRET_ACCESS_KEY')
Example #2
0
 def __init__(self, config):
     BackupDestination.__init__(self, config)
     self.sambashare = config.get('samba', 'share')
     try:
         self.sambahost = config.get('samba', 'hostname')
     except:
         self.sambahost = config.get_or_envvar('defaults', 'hostname', 'SMB_HOSTNAME')
     try:
         self.username = config.get('samba', 'username')
     except:
         self.username = config.get_or_envvar('defaults', 'username', 'SMB_USERNAME')
     try:
         self.password = config.get('samba', 'password')
     except:
         self.password = config.get_or_envvar('defaults', 'password', 'SMB_PASSWORD')
     try:
         self.workgroup = config.get('samba', 'workgroup')
     except:
         self.workgroup = config.get_or_envvar('defaults', 'workgroup', 'SMB_WORKGROUP')