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=$?