rclone copyto file.txt remote:bucket/newname.txt

Category: Backup & Restore

rclone copyto file.txt remote:bucket/newname.txt

Upload one file under a new name

Copies a single file and lets you rename it at the destination in the same command, unlike rclone copy, which preserves names. It also works in reverse for a single-file download. Related: rclone move for cut-and-paste behavior.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.