From 76cc22f9554a10060747842c6fb56197843d627e Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Sat, 26 Oct 2019 07:39:32 +0000 Subject: [PATCH] Adjust backup to new path on NAS, set better backup title new title allows restarting backup without creating a new one --- .bin/daily.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.bin/daily.sh b/.bin/daily.sh index c7ddec0..a9924f4 100755 --- a/.bin/daily.sh +++ b/.bin/daily.sh @@ -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 \