diff --git a/backend/backup_db.py b/backend/backup_db.py index 05bfb63..8e35d34 100644 --- a/backend/backup_db.py +++ b/backend/backup_db.py @@ -104,8 +104,7 @@ def upload_to_r2(file_path): config=Config( signature_version='s3v4', s3={'addressing_style': 'path'} - ), - region_name='auto' + ) ) # Upload file @@ -140,8 +139,7 @@ def list_r2_backups(): config=Config( signature_version='s3v4', s3={'addressing_style': 'path'} - ), - region_name='auto' + ) ) try: diff --git a/backend/backup_restore_api.py b/backend/backup_restore_api.py index d0080e6..2a6aa6c 100644 --- a/backend/backup_restore_api.py +++ b/backend/backup_restore_api.py @@ -53,8 +53,7 @@ def get_r2_client(): config=Config( signature_version='s3v4', s3={'addressing_style': 'path'} - ), - region_name='auto' + ) ) diff --git a/backend/restore_db.py b/backend/restore_db.py index 8cf0266..8559b6d 100644 --- a/backend/restore_db.py +++ b/backend/restore_db.py @@ -41,8 +41,7 @@ def list_r2_backups(): config=Config( signature_version='s3v4', s3={'addressing_style': 'path'} - ), - region_name='auto' + ) ) try: @@ -73,8 +72,7 @@ def download_from_r2(backup_name): config=Config( signature_version='s3v4', s3={'addressing_style': 'path'} - ), - region_name='auto' + ) ) try: