From 059bd041e690c320f6191728bc0cbdea99f37acc Mon Sep 17 00:00:00 2001 From: Magnus Andersson Date: Thu, 12 Oct 2023 09:21:57 +0200 Subject: [PATCH] backup-all-buckets: Add comment about safeguard --- templates/script/backup-all-buckets.erb.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/script/backup-all-buckets.erb.sh b/templates/script/backup-all-buckets.erb.sh index 66c909f..200a5a1 100644 --- a/templates/script/backup-all-buckets.erb.sh +++ b/templates/script/backup-all-buckets.erb.sh @@ -37,7 +37,7 @@ function do_backup { local mirrorbucket="${bucket}-mirror" local mountpoint="/opt/backupmounts/${bucket}" ps aux | grep duplicity | grep "[^a-zA-Z]${bucket}" > /dev/null - local oktorun=$? + local oktorun=$? # 1 == this bucket has no other bakup process in progress mkdir -p ${mountpoint} [ ${oktorun} -ne 0 ] && rclone mount ${project}:${bucket} ${mountpoint}/ --daemon --allow-other --dir-cache-time 24h rclone mkdir ${mirror}:${mirrorbucket}