borgthismachine: add hostname to snapshot name

This commit is contained in:
layman 2021-07-08 15:51:49 +02:00
parent 225b4325b7
commit 369214bd45
No known key found for this signature in database
GPG key ID: 92D2BF778E1308C0

View file

@ -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