split to separate launch scripts for different machines
This commit is contained in:
parent
fcc846dc19
commit
fd6431331e
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/bash
|
||||
|
||||
source ~/.restic-env
|
||||
python3.6 ~/restic_many.py backup
|
||||
~/restic_many.py backup
|
|
@ -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
|
Loading…
Reference in New Issue