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 \