diff --git a/agent/site.py b/agent/site.py index 06d07824..97963cba 100644 --- a/agent/site.py +++ b/agent/site.py @@ -380,12 +380,14 @@ def upload_offsite_backup(self, backup_files, offsite): aws_access_key_id=auth["ACCESS_KEY"], aws_secret_access_key=auth["SECRET_KEY"], region_name=region, + endpoint_url=auth.get("ENDPOINT_URL"), ) else: s3 = boto3.client( "s3", aws_access_key_id=auth["ACCESS_KEY"], aws_secret_access_key=auth["SECRET_KEY"], + endpoint_url=auth.get("ENDPOINT_URL"), ) for backup_file in backup_files.values():