diff --git a/borgthismachine.sh b/borgthismachine.sh index 526a235..f9638cd 100755 --- a/borgthismachine.sh +++ b/borgthismachine.sh @@ -44,9 +44,10 @@ MYREPO="${USER}@${BORGHOST}:${REPO}" export BORG_PASSPHRASE export HOME -echo using repo: $MYREPO -SNAPSHOT="$(date +%Y-%m-%d-%a)" +SNAPSHOT="${SNAPSHOT:-"$(hostname -f) $(date "+%Y-%m-%d %a %H:%M")"}" + +echo "using repo: $MYREPO snapshot: $SNAPSHOT" echo #### borg backup #### if [[ -n "${MAC}" ]] ; then