update scripts for backups

This commit is contained in:
albert 2025-04-06 10:39:18 +02:00
parent f439b0e355
commit 60f2435065
Signed by: albert
GPG key ID: 3895DD267CA11BA9

View file

@ -41,7 +41,7 @@ if [[ $count -ge 4 ]] ; then
fi
# Check if the Synology is mounted
check=$(ssh root@nuc-server df -h | grep 100.64.0.2 | wc -l)
check=$(ssh root@nuc-server df -h | grep \/volume1\/Storage | wc -l)
if [[ $check != 1 ]] ; then
echo "Synology is not mounted on nuc-server: check returned $check"
payload="{\"message\": \"Backup stopped. Synology isn't mounted\nDate: `date`\", \"priority\": 2,\"title\": \"backups-rpi4: $BACKUP_NAME Backup Stopped\"}"