borgthismachine: add hostname to snapshot name
This commit is contained in:
parent
225b4325b7
commit
369214bd45
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue