Update backup script for rsync-media, update synology IP addrss

This commit is contained in:
albert 2024-08-17 13:00:59 +09:00
parent 2fe628a79c
commit b34c986b17
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-docker01 df -h | grep 192.168.1.100 | wc -l)
check=$(ssh root@nuc-docker01 df -h | grep synology.servers.hs.net | wc -l)
if [[ $check != 1 ]] ; then
echo "Synology is not mounted on nuc-docker01: check returned $check"
payload="{\"message\": \"Backup stopped. Synology isn't mounted\nDate: `date`\", \"priority\": 2,\"title\": \"japan-rpi4: $BACKUP_NAME Backup Stopped\"}"