fix borg command

This commit is contained in:
Marc Koch 2023-09-06 17:58:05 +02:00
parent 9092922440
commit 0edf08d93e
1 changed files with 2 additions and 2 deletions

View File

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