borgthismachine: fix date string for snapshots
This commit is contained in:
parent
6b92513ecc
commit
db6fb5b84a
1 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
if [[ "$HOME" == "/" ]] ; then
|
if [[ "$HOME" == "/" || -z "$HOME" ]] ; then
|
||||||
HOME="/root/"
|
HOME="/root/"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -45,7 +45,7 @@ export BORG_PASSPHRASE
|
||||||
export HOME
|
export HOME
|
||||||
echo using repo: $MYREPO
|
echo using repo: $MYREPO
|
||||||
|
|
||||||
SNAPSHOT="$(date +%a-%Y-%m-%d)"
|
SNAPSHOT="$(date +%Y-%m-%d-%a)"
|
||||||
|
|
||||||
echo #### borg backup ####
|
echo #### borg backup ####
|
||||||
if [[ -n "${MAC}" ]] ; then
|
if [[ -n "${MAC}" ]] ; then
|
||||||
|
|
Loading…
Add table
Reference in a new issue