split to separate launch scripts for different machines

This commit is contained in:
Viv 2019-11-29 18:33:40 -08:00
parent fcc846dc19
commit fd6431331e
2 changed files with 14 additions and 1 deletions

View File

@ -1,4 +1,4 @@
#!/usr/bin/bash
source ~/.restic-env
python3.6 ~/restic_many.py backup
~/restic_many.py backup

13
do_backup_tartarus.sh Normal file
View File

@ -0,0 +1,13 @@
#!/usr/local/bin/bash
# simple check for zfs pool being online
if zpool list | grep -q depths.*ONLINE
then
echo "zfs pool is online, continuing with backup"
else
echo "zfs pool is NOT online, skipping backup."
exit 1
fi
source ~/.restic-env
python3.6 ~/restic_many.py backup