fix: use scp -O instead of rsync for Synology NAS sync
Some checks failed
CI / Lint, Test & Build (push) Failing after 7m45s
CI / Deploy production (on server) (push) Has been cancelled

This commit is contained in:
Antigravity
2026-05-17 15:52:19 +00:00
parent 249426a0e0
commit e8e064e22a
2 changed files with 3 additions and 3 deletions

View File

@@ -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
}

View File

@@ -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"