copied script from configured server

This commit is contained in:
2023-10-11 20:12:29 -05:00
parent fbbc126a8e
commit 4e6a52101a

View File

@@ -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