From 9f93a55c092f31165493db852788fa8d076aa6c1 Mon Sep 17 00:00:00 2001 From: Philipp Rothmann Date: Tue, 13 Jun 2023 11:57:42 +0200 Subject: [PATCH] fix shellcheck prevent globbing --- backup.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backup.sh b/backup.sh index 32cb336..47c2512 100755 --- a/backup.sh +++ b/backup.sh @@ -96,7 +96,7 @@ if [[ \ $*\ != *\ --skip-backup\ * ]]; then fi # add volume paths to backup path - backup_paths+=(/var/lib/docker/volumes/${stack_name}_*) + backup_paths+=(/var/lib/docker/volumes/"${stack_name}"_*) fi done @@ -108,6 +108,7 @@ if [[ \ $*\ != *\ --skip-backup\ * ]]; then fi if [[ \ $*\ != *\ --skip-upload\ * ]]; then + echo "${backup_paths[@]}" _restic backup --host "$server_name" --tag coop-cloud "${backup_paths[@]}" fi