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:
parent
4889e2fc2d
commit
76cc22f955
1 changed files with 2 additions and 3 deletions
|
@ -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 \
|
||||
|
|
Loading…
Reference in a new issue