rclone sync ./files remote:bucket/files

Category: Backup & Restore

rclone sync ./files remote:bucket/files

Mirror files to the bucket, deleting extras

Makes the destination exactly match the source, so files missing locally are deleted remotely, and that deletion is permanent. Always preview with rclone sync --dry-run first. This is the standard command for pushing backups to cloud storage.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.