fix: add --transfers 1 --retries 5 to rclone — workaround for Proton Drive parallel upload bug

https://claude.ai/code/session_01FKCW3FDjNFj6jve4niMFXH
This commit is contained in:
Claude 2026-03-26 15:44:46 +00:00
parent 84ac8f3b9f
commit b7430cbb65
No known key found for this signature in database

View file

@ -140,7 +140,7 @@ log "Archive size: ${ARCHIVE_SIZE}"
if [ -n "${BACKUP_REMOTE}" ]; then
if command -v rclone &>/dev/null; then
log "Uploading to ${BACKUP_REMOTE}"
rclone copy "${ARCHIVE_PATH}" "${BACKUP_REMOTE}/"
rclone copy --transfers 1 --retries 5 "${ARCHIVE_PATH}" "${BACKUP_REMOTE}/"
log "Upload complete."
else
log "WARNING: HIY_BACKUP_REMOTE is set but rclone is not installed — skipping"