From b34c986b170de0f27c3c1594589f30f6fe4220ea Mon Sep 17 00:00:00 2001 From: albert Date: Sat, 17 Aug 2024 13:00:59 +0900 Subject: [PATCH] Update backup script for rsync-media, update synology IP addrss --- nixos/hosts/backups-rpi4/scripts/rsync-media.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/hosts/backups-rpi4/scripts/rsync-media.sh b/nixos/hosts/backups-rpi4/scripts/rsync-media.sh index 55a94399..d26d420d 100644 --- a/nixos/hosts/backups-rpi4/scripts/rsync-media.sh +++ b/nixos/hosts/backups-rpi4/scripts/rsync-media.sh @@ -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\"}"