modified script to check if truenas is up
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user