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

View File

@@ -2,9 +2,10 @@
if ping -c 1 192.168.1.41 > /dev/null 2>&1
then
if [[ -f /mnt/resticbackups/config ]]
if [[ -f /mnt/resticbackups/etc/config ]]
then
sudo wrestic backup
sudo restic cache --cleanup
else
echo "TrueNAS is offline"
fi

View File

@@ -3,6 +3,7 @@
if ping -c 1 192.168.1.41 > /dev/null 2>&1
then
sudo wrestic backup
sudo restic cache --cleanup
else
echo "TrueNAS is offline"
fi