modified script to check if truenas is up

This commit is contained in:
2023-10-10 19:21:43 -05:00
parent ec14157a24
commit 9dfd525c97

View File

@@ -2,9 +2,7 @@
if ping -c 1 192.168.1.41 > /dev/null 2>&1
then
if [[ ! -d /mnt/truenas-backups/archivebackups ]]
then
sudo wrestic backup
else
echo "TrueNAS is offline"
fi
sudo wrestic backup
else
echo "TrueNAS is offline"
fi