add date to output of do_backup scripts
This commit is contained in:
parent
621982119f
commit
bbcc0dd7a7
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue