rsync command builder
Assemble a ready-to-paste rsync command from source, destination and transfer options.
rsync command builder
rsync is one of those tools everyone reaches for and nobody fully remembers the flags to — is it -a or -r, does --delete go before or after the exclude list, which side gets the trailing slash. This builder turns a form into a correct, ready-to-run command line, so you spend your attention on what to sync rather than on flag order.
Fill in a source and destination path, and optionally a remote host, user and SSH port for a push over the network. Toggle archive mode to preserve permissions, timestamps, symlinks and ownership in one go, add compression for slow links, and turn on deletion to make the destination an exact mirror of the source. Exclude and include patterns accept a comma- or newline-separated list — .git, node_modules, build artefacts — and a bandwidth limit keeps a large sync from saturating the connection. Three presets (backup, deploy website, mirror) set a sensible bundle of flags in one click; picking "Custom" leaves every checkbox in your own hands.
The one flag people get backwards most often is the trailing slash on the source path: with one, rsync copies the directory's *contents* into the destination; without it, the directory itself is created inside the destination. The tool applies your choice automatically and explains it under the command, along with every other flag it used — so the line is not just correct but understandable. Turn on --dry-run first to preview exactly what would change before anything is deleted or overwritten.
Everything runs locally in your browser. No path, hostname or username you type is ever transmitted anywhere — the tool only assembles text. Copy the result, download it as a .txt file, or send it to another tool's input to keep working.