Fix bkp in aws
This commit is contained in:
parent
c581fa5e1c
commit
f86396107d
@ -104,8 +104,7 @@ def upload_to_r2(file_path):
|
|||||||
config=Config(
|
config=Config(
|
||||||
signature_version='s3v4',
|
signature_version='s3v4',
|
||||||
s3={'addressing_style': 'path'}
|
s3={'addressing_style': 'path'}
|
||||||
),
|
)
|
||||||
region_name='auto'
|
|
||||||
)
|
)
|
||||||
|
|
||||||
# Upload file
|
# Upload file
|
||||||
@ -140,8 +139,7 @@ def list_r2_backups():
|
|||||||
config=Config(
|
config=Config(
|
||||||
signature_version='s3v4',
|
signature_version='s3v4',
|
||||||
s3={'addressing_style': 'path'}
|
s3={'addressing_style': 'path'}
|
||||||
),
|
)
|
||||||
region_name='auto'
|
|
||||||
)
|
)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|||||||
@ -53,8 +53,7 @@ def get_r2_client():
|
|||||||
config=Config(
|
config=Config(
|
||||||
signature_version='s3v4',
|
signature_version='s3v4',
|
||||||
s3={'addressing_style': 'path'}
|
s3={'addressing_style': 'path'}
|
||||||
),
|
)
|
||||||
region_name='auto'
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -41,8 +41,7 @@ def list_r2_backups():
|
|||||||
config=Config(
|
config=Config(
|
||||||
signature_version='s3v4',
|
signature_version='s3v4',
|
||||||
s3={'addressing_style': 'path'}
|
s3={'addressing_style': 'path'}
|
||||||
),
|
)
|
||||||
region_name='auto'
|
|
||||||
)
|
)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
@ -73,8 +72,7 @@ def download_from_r2(backup_name):
|
|||||||
config=Config(
|
config=Config(
|
||||||
signature_version='s3v4',
|
signature_version='s3v4',
|
||||||
s3={'addressing_style': 'path'}
|
s3={'addressing_style': 'path'}
|
||||||
),
|
)
|
||||||
region_name='auto'
|
|
||||||
)
|
)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user