updated wrestic script

This commit is contained in:
2023-11-30 19:32:47 -06:00
parent 9442efaa1f
commit 5ceb427bf4
3 changed files with 5 additions and 2 deletions

View File

@@ -2,9 +2,10 @@
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 then
if [[ -d /mnt/truenas-backups/archivebackups ]] if [[ -d /mnt/truenas-backups/resticbackups ]]
then then
sudo wrestic backup sudo wrestic backup
sudo restic cache --cleanup
else else
echo "TrueNAS is offline" echo "TrueNAS is offline"
fi fi

View File

@@ -2,9 +2,10 @@
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 then
if [[ -f /mnt/resticbackups/config ]] if [[ -f /mnt/resticbackups/etc/config ]]
then then
sudo wrestic backup sudo wrestic backup
sudo restic cache --cleanup
else else
echo "TrueNAS is offline" echo "TrueNAS is offline"
fi fi

View File

@@ -3,6 +3,7 @@
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 then
sudo wrestic backup sudo wrestic backup
sudo restic cache --cleanup
else else
echo "TrueNAS is offline" echo "TrueNAS is offline"
fi fi