Skip to content

Commit da916b6

Browse files
committed
reg: invalid bucket name
1 parent 7b9798e commit da916b6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

dcor_control/cli/backup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def encrypted_instance_backup(key_id, skip_s3=False):
3838
db_path = db_backup()
3939

4040
# Create a tar.bz2 file that contains the contents of /data and `dp_path`.
41-
click.secho("Creating instance backup..")
41+
click.secho("Creating instance backup...")
4242
storage_path = pathlib.Path(get_ckan_config_option("ckan.storage_path"))
4343
droot = pathlib.Path("/backups/instance/")
4444
droot.mkdir(parents=True, exist_ok=True)
@@ -59,7 +59,7 @@ def encrypted_instance_backup(key_id, skip_s3=False):
5959
click.secho("Uploading to S3...")
6060
bucket_prefix = get_ckan_config_option(
6161
"dcor_object_store.bucket_name").format(organization_id="")
62-
bucket_name = bucket_prefix + "00000_backup"
62+
bucket_name = bucket_prefix + "00000-backup"
6363
s3.require_bucket(bucket_name)
6464
s3.upload_file(bucket_name=bucket_name,
6565
object_name=f"{now[:4]}/{now[5:7]}/{eout.name}",

0 commit comments

Comments
 (0)