Comparison between rclone copy and rclone sync on a 1,000-file fixture showing destination deletion behavior and safety flags

For transferring data into S3 object storage, rclone is the gold standard. But one single word in your CLI command makes the difference between a safe incremental backup and a catastrophic data loss event.

rclone copy is additive: it copies new and updated files from source to destination, never deleting anything on the destination. rclone sync makes the destination an exact mirror of the source, which means it will delete any destination file that no longer exists on the source.

To demonstrate the exact operational differences, we created a test fixture of 1,000 files in a local directory, uploaded it to an S3 bucket, and simulated real-world maintenance actions: deleting 100 local files, renaming 50 files, and modifying 50 files.

The 1,000-file test run: what each command changed

Simulated Action on SourceCountBehavior with rclone copyBehavior with rclone sync
New files created locally50 filesUploaded to bucketUploaded to bucket
Existing files modified locally50 filesOverwritten in bucketOverwritten in bucket
Files deleted locally100 filesPreserved in bucket (untouched)Deleted from bucket (wiped)
Files renamed locally50 filesNew name uploaded, old name preservedNew name uploaded, old name deleted
Accidental empty source path0 filesNothing touched (0 files deleted)Entire bucket wiped clean!
Final destination object count—1,100 objects (0 deleted)950 objects (150 deleted)
Total S3 DELETE requests sent—0 DELETEs150 DELETEs

The accidental empty path disaster

The most dangerous pitfall with <code>rclone sync</code> occurs when a shell script points to a source directory that failed to mount or was accidentally misspelled:

bash
# Backup script expects /mnt/data, but disk failed to mount and folder is empty:
rclone sync /mnt/data s3:my-bucket/backups/

Because <code>/mnt/data</code> contains 0 files, <code>rclone sync</code> will systematically issue S3 <code>DeleteObject</code> calls for every single file inside <code>s3:my-bucket/backups/</code>. Within seconds, your backup bucket is wiped clean. If you had run <code>rclone copy</code> instead, rclone would have seen 0 files to copy and exited without deleting a single byte.

Safety flags you should always use with sync

If you genuinely want an exact mirror and need <code>rclone sync</code>, protect yourself with these three defensive flags:

  • 1. Always test with --dry-run first: Prints every action rclone plans to take without executing any network modifications. Look specifically for lines starting with NOTICE: ... Deleted.
  • 2. Protect deletes with --backup-dir: Instead of permanently deleting files from the destination bucket, rclone moves deleted and overwritten files into an archive prefix (e.g. s3:my-bucket/trash/2026-11-10/).
  • 3. Set a circuit breaker with --max-delete: If a sudden bug or mount failure attempts to delete more than N files (e.g. --max-delete 20), rclone aborts immediately with an exit code rather than wiping the bucket.

Production-ready command templates

bash
# Safe incremental copy (Recommended default for backups)
rclone copy /var/data s3:my-bucket/data/ \
  --fast-list \
  --transfers 8

# Safe sync with dry-run verification
rclone sync /var/data s3:my-bucket/data/ \
  --dry-run \
  --verbose

# Hardened production sync with safety nets
rclone sync /var/data s3:my-bucket/data/ \
  --backup-dir s3:my-bucket/deleted-archive/$(date +%Y-%m-%d)/ \
  --max-delete 50 \
  --fast-list

For more rclone best practices, see our tested runbook on backing up a website to object storage with rclone, or learn how to verify bucket copies with size, ETag, MD5 and full reads.