Adjust backup to new path on NAS, set better backup title

new title allows restarting backup without creating a new one
This commit is contained in:
Franzi 2019-10-26 07:39:32 +00:00
parent 4889e2fc2d
commit 76cc22f955
Signed by untrusted user: kunsi
GPG key ID: 12E3D2136B818350

View file

@ -1,6 +1,6 @@
#!/bin/sh
export BORG_REPO=ssh://nas/media/backups/franzi
export BORG_REPO=ssh://nas/storage/backups/kunsi-t470
export BORG_PASSCOMMAND='pass show nas/backup-pass'
info() { printf "\n%s %s\n\n" "$( date )" "$*" >&2; }
@ -23,7 +23,7 @@ borg create \
--exclude '/home/*/.cache/*' \
--exclude '/home/*/.dbus' \
\
::'{hostname}-{now}' \
::$(date +%Y-%m-%d) \
/home/kunsi \
backup_exit=$?
@ -32,7 +32,6 @@ info "Pruning repository"
borg prune \
--list \
--prefix '{hostname}-' \
--show-rc \
--keep-daily 7 \
--keep-weekly 4 \