add date to output of do_backup scripts
This commit is contained in:
parent
621982119f
commit
bbcc0dd7a7
|
@ -1,4 +1,9 @@
|
||||||
#!/usr/bin/bash
|
#!/usr/bin/bash
|
||||||
|
|
||||||
|
echo ""
|
||||||
|
echo "======================="
|
||||||
|
echo "starting backup"
|
||||||
|
date
|
||||||
|
|
||||||
source ~/.restic-env
|
source ~/.restic-env
|
||||||
~/restic_many.py backup --resticbin /home/restic/bin/restic
|
~/restic_many.py backup --resticbin /home/restic/bin/restic
|
||||||
|
|
|
@ -1,5 +1,10 @@
|
||||||
#!/usr/local/bin/bash
|
#!/usr/local/bin/bash
|
||||||
|
|
||||||
|
echo ""
|
||||||
|
echo "======================="
|
||||||
|
echo "starting backup"
|
||||||
|
date
|
||||||
|
|
||||||
# simple check for zfs pool being online
|
# simple check for zfs pool being online
|
||||||
if zpool list | grep -q depths.*ONLINE
|
if zpool list | grep -q depths.*ONLINE
|
||||||
then
|
then
|
||||||
|
@ -10,4 +15,4 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
source ~/.restic-env
|
source ~/.restic-env
|
||||||
python3.6 ~/restic-backups/restic_many.py backup
|
python3.6 ~/restic-backups/restic_many.py backup
|
||||||
|
|
Loading…
Reference in New Issue