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

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