fix borg command
This commit is contained in:
parent
9092922440
commit
0edf08d93e
|
|
@ -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=$?
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue