From 0edf08d93e48ab93ba04cf6c90a36ca6dc6fcf57 Mon Sep 17 00:00:00 2001 From: Marc Michalsky Date: Wed, 6 Sep 2023 17:58:05 +0200 Subject: [PATCH] fix borg command --- borgbackup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/borgbackup.sh b/borgbackup.sh index 7e20f1b..55fa667 100755 --- a/borgbackup.sh +++ b/borgbackup.sh @@ -56,11 +56,11 @@ exclude() { # Backup the most important directories into an archive named after # the machine this script is currently running on: -borg_command=("/usr/local/bin/borg create" "--verbose" "--filter AME" "--list" "--stats" "--show-rc" "--compression lz4" "--exclude-caches") +borg_command=("create" "--verbose" "--filter AME" "--list" "--stats" "--show-rc" "--compression lz4" "--exclude-caches") borg_command+=($(exclude)) borg_command+=("::backup-{hostname}-{now}" "${BORG_TARGETS[@]}") -"${borg_command[@]}" +/usr/local/bin/borg "${borg_command[@]}" backup_exit=$?