From e8e064e22af6f6e2114cee80a1e85356f9c8b061 Mon Sep 17 00:00:00 2001 From: Antigravity Date: Sun, 17 May 2026 15:52:19 +0000 Subject: [PATCH] fix: use scp -O instead of rsync for Synology NAS sync --- .cursor/hooks/state/continual-learning.json | 4 ++-- scripts/backup/offsite-sync.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.cursor/hooks/state/continual-learning.json b/.cursor/hooks/state/continual-learning.json index e7fc96b..ee76ceb 100644 --- a/.cursor/hooks/state/continual-learning.json +++ b/.cursor/hooks/state/continual-learning.json @@ -1,8 +1,8 @@ { "version": 1, "lastRunAtMs": 1779026397247, - "turnsSinceLastRun": 2, + "turnsSinceLastRun": 7, "lastTranscriptMtimeMs": 1779026397153.5342, - "lastProcessedGenerationId": "ebfbb794-0fc5-4c91-bdd5-581bc2a276c0", + "lastProcessedGenerationId": "2cd15cc8-e19e-4dc7-b37a-7d6d7b76ae2b", "trialStartedAtMs": null } diff --git a/scripts/backup/offsite-sync.sh b/scripts/backup/offsite-sync.sh index 2008258..303eb52 100755 --- a/scripts/backup/offsite-sync.sh +++ b/scripts/backup/offsite-sync.sh @@ -43,7 +43,7 @@ for NAS_ADDR in "$NAS1" "$NAS2"; do log "Syncing to $NAS_NAME..." ssh -i "$SSH_KEY" -o StrictHostKeyChecking=no "$NAS_ADDR" "mkdir -p $NAS_PATH" 2>/dev/null - rsync -az -e "ssh -i $SSH_KEY -o StrictHostKeyChecking=no" --chmod=F600 "$SNAPSHOT_DIR/" "${NAS_ADDR}:${NAS_PATH}/" 2>&1 | tee -a "$LOG_FILE" + scp -O -i "$SSH_KEY" -o StrictHostKeyChecking=no "$SNAPSHOT_DIR"/*.sql.gz "${NAS_ADDR}:${NAS_PATH}/" 2>&1 | tee -a "$LOG_FILE" if [ $? -eq 0 ]; then log "$NAS_NAME: sync complete"