From b969ae2a2a94bc36160fc5e1bdf4e17529ea4c23 Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Tue, 22 Feb 2022 12:08:00 +0100 Subject: [PATCH 1/2] make backup script executable --- scripts/backup-aws-s3.sh | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 scripts/backup-aws-s3.sh diff --git a/scripts/backup-aws-s3.sh b/scripts/backup-aws-s3.sh old mode 100644 new mode 100755 From 40cf0b227f065b14431cc1680f5212cf3e2803ce Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Tue, 22 Feb 2022 12:10:57 +0100 Subject: [PATCH 2/2] fix bucket naming --- scripts/backup-aws-s3.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/backup-aws-s3.sh b/scripts/backup-aws-s3.sh index 64af8ab1..41a269d0 100755 --- a/scripts/backup-aws-s3.sh +++ b/scripts/backup-aws-s3.sh @@ -22,7 +22,7 @@ done # create bucket skynet-backup-[portaldomain] (portal domain is stripped of all non alnum characters) # ie. siasky.net backup results in skynet-backup-siaskynet basket name -BUCKET_NAME=$(echo skynet-backup-${PORTAL_DOMAIN} | tr -cd '[[:alnum:]]') +BUCKET_NAME=$(echo skynet-backup-${PORTAL_DOMAIN} | tr -cd '[[:alnum:]]-') # create server prefix if test -z "${SERVER_DOMAIN}"; then