diff --git a/wrestic/wrestic-backup-to-truenas-lxc.sh b/wrestic/wrestic-backup-to-truenas-lxc.sh index e69de29..308c0fb 100644 --- a/wrestic/wrestic-backup-to-truenas-lxc.sh +++ b/wrestic/wrestic-backup-to-truenas-lxc.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +if ping -c 1 192.168.1.41 > /dev/null 2>&1 + then + if [[ -f /mnt/resticbackups/config ]] + then + sudo wrestic backup + else + echo "TrueNAS is offline" + fi + else + echo "TrueNAS is offline" +fi