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

@@ -1,8 +1,6 @@
#!/bin/bash #!/bin/bash
if ping -c 1 192.168.1.41 > /dev/null 2>&1 if ping -c 1 192.168.1.41 > /dev/null 2>&1
then
if [[ ! -d /mnt/truenas-backups/archivebackups ]]
then then
sudo wrestic backup sudo wrestic backup
else else