add date to output of do_backup scripts

This commit is contained in:
Viv 2020-03-22 11:16:30 -07:00
parent 621982119f
commit bbcc0dd7a7
2 changed files with 12 additions and 2 deletions

View File

@ -1,4 +1,9 @@
#!/usr/bin/bash
echo ""
echo "======================="
echo "starting backup"
date
source ~/.restic-env
~/restic_many.py backup --resticbin /home/restic/bin/restic
~/restic_many.py backup --resticbin /home/restic/bin/restic

View File

@ -1,5 +1,10 @@
#!/usr/local/bin/bash
echo ""
echo "======================="
echo "starting backup"
date
# simple check for zfs pool being online
if zpool list | grep -q depths.*ONLINE
then
@ -10,4 +15,4 @@ else
fi
source ~/.restic-env
python3.6 ~/restic-backups/restic_many.py backup
python3.6 ~/restic-backups/restic_many.py backup