From 20c8f06a760790b64023b17c6b60292fba976ffd Mon Sep 17 00:00:00 2001 From: andre Date: Sat, 28 Feb 2026 18:39:17 +0100 Subject: [PATCH] rootfs/home/andre/home-sync.sh aktualisiert --- rootfs/home/andre/home-sync.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/rootfs/home/andre/home-sync.sh b/rootfs/home/andre/home-sync.sh index 4ae2db5..cf0b961 100644 --- a/rootfs/home/andre/home-sync.sh +++ b/rootfs/home/andre/home-sync.sh @@ -6,12 +6,16 @@ SRC="/home/${USR}/" DEST="${USR}@${NAS}:/volume1/homes/${USR}/tux-home/" RSYNC_OPTS="-az --delete --partial --timeout=20" +echo "Prüfe ob NAS erreichbar ist" # Ping check (optional, verhindert lange Timeouts) ping -c1 ${NAS} >/dev/null 2>&1 if [ $? -ne 0 ]; then - echo "$(date): NAS unreachable" + echo "$(date): NAS nicht erreichbar" exit 0 fi +echo "NAS erreichbar. Starte rsync" # Sync starten -rsync $RSYNC_OPTS "$SRC" "$DEST" \ No newline at end of file +rsync $RSYNC_OPTS "$SRC" "$DEST" + +echo "Fertig" \ No newline at end of file