• Latest
  • Trending
  • All
rsync Command Generator: Build Sync, Backup and SSH Transfer Commands - cover image

rsync Command Generator: Build Sync, Backup and SSH Transfer Commands

June 14, 2026
ssh command cheatsheet

SSH Command Cheatsheet: Connect, Keys, scp, Tunnels (2026)

June 16, 2026
chmod-chown-cheatsheet

chmod and chown Cheatsheet: Linux Permissions, Decoded (2026)

June 16, 2026
systemctl-journalctl-cheatsheet

systemctl + journalctl Cheatsheet: Services and Logs (2026)

June 16, 2026
grep-cheatsheet

The grep Cheatsheet: Search a File, Search a Tree (2026)

June 16, 2026
rsync-cheatsheet

The rsync Cheatsheet: Mirror, Sync, Copy Over SSH (2026)

June 16, 2026
curl-cheatsheet

curl Cheatsheet: Download Files and Test APIs (2026)

June 16, 2026
iptables-vs-nftables-cheatsheet cheatsheet

iptables vs nftables: Linux Firewall Cheatsheet, Side by Side

June 16, 2026
nmcli-cheatsheet cheatsheet

nmcli Cheatsheet: Wi-Fi and Network Connections From the Linux Terminal

June 16, 2026
powershell-networking-cheatsheet cheatsheet

PowerShell Networking Cheatsheet: Test-NetConnection, IP, DNS (2026)

June 16, 2026
tar command cheatsheet

The tar Command Cheatsheet: Create, Extract, Stop Guessing (2026)

June 16, 2026
Linux find command cheatsheet

The find Command Cheatsheet: Every Recipe You Actually Use (2026)

June 15, 2026
Linux networking commands cheatsheet, ip and ss

Linux Networking Commands in 2026: the ip and ss Cheatsheet

June 15, 2026
  • Online Tools
  • Network Tools
  • Developer Tools
  • Security Tools
Tuesday, June 16, 2026
  • Login
People Are Geek
  • Online Tools
  • Network Tools
  • Developer Tools
  • Security Tools
No Result
View All Result
People Are Geek
No Result
View All Result
Home Developer Tools

rsync Command Generator: Build Sync, Backup and SSH Transfer Commands

by People Are Geek
June 14, 2026
in Developer Tools, Online Tools
0
rsync Command Generator: Build Sync, Backup and SSH Transfer Commands - cover image
0
SHARES
10
VIEWS
Share on FacebookShare on Twitter

rsync command generator

Need an rsync command and don’t want to second-guess the flags? Type a source and a destination, say if either end lives on a remote box, tick what you want. You get a command you can paste straight into a terminal. Flip on --delete and a red warning shows up, because honestly that flag has eaten more than a few backups. The whole thing runs in your browser, nothing leaves the page.

$
Recommended dev gearWe may earn a commission, at no extra cost to you.
Mechanical KeyboardCheck price on Amazon →Usb C Docking StationCheck price on Amazon →Portable MonitorCheck price on Amazon →Clean Code BookCheck price on Amazon →

What this rsync command generator does

rsync copies and syncs files, locally or over SSH, and it only moves what actually changed. So the second run is quick. The third is quicker. That’s why it sits under so many backup scripts and deploy pipelines. The flags are another story. There are dozens, and a bad mix (looking at you, --delete) can wipe data you wanted to keep. Here you just describe the copy in plain words and the exact command falls out, every flag spelled out, with a loud warning before anything that bites.

The mental model isn’t hard. rsync takes a source and a destination, then makes the destination match the source for whatever it copies. What trips people up is one character: the trailing slash. src/ copies the contents of src into the destination. Drop the slash and src copies the folder itself, so you end up with a directory nested inside a directory. A tiny thing that’s bitten me more than once.

The flags that matter

  • -a (archive) is the one you’ll use nearly every time. It means recursive, and it preserves permissions, timestamps, symlinks, the ownership, all of it in one letter.
  • -v (verbose) lists what moved. Pair it with -h so sizes show up as KB or MB instead of a wall of bytes.
  • -z (compress) squeezes data on the wire. Great over a slow link. On a fast LAN or a local copy it just burns CPU for nothing, so skip it there.
  • -P rolls --partial and --progress into one: a progress bar, plus it hangs onto half-finished files so a big interrupted transfer can pick up where it died.
  • –dry-run (-n) pretends. It lists what would change and touches nothing. I run it before any real sync I’m even slightly unsure about, and you probably should too.
  • –delete wipes files on the destination that aren’t in the source anymore, which is what makes it a true mirror. Useful. Also the flag most likely to ruin your afternoon.

Local, push and pull

Put a user@host: prefix on either side and rsync reaches for SSH on its own. No extra flag needed. A push sends local files up to a server: rsync -avz ./site/ user@web:/var/www/. A pull drags them back down: rsync -avz user@web:/var/www/ ./backup/. Running SSH on some other port? Tack on -e 'ssh -p 2222'. Encrypted, resumable, and it doesn’t choke on a connection that drops halfway, which is why people lean on it for moving big datasets between machines.

Always dry-run before –delete

Here’s the trap with --delete. Point the source at the wrong path, or slip in a trailing slash that quietly changes the layout, and rsync will do exactly what you told it: delete the destination files to match. It’s not malicious. It’s obedient, which is worse. So add --dry-run first, actually read the list of things it wants to remove, and only then run it for real. That’s the whole reason this generator slaps a red warning on --delete and ships a dry-run preset.

Privacy and how this tool runs

JavaScript builds the command right here in your browser. Your paths and hostnames don’t get sent anywhere, and nothing’s logged. That matters on this page more than most, since half of what you type into it is real server names.

Frequently asked questions

What does rsync -avz mean?

Three flags bundled together. -a is archive mode, so it recurses and keeps permissions, timestamps, symlinks and ownership intact. -v just makes it talk, listing what it moved. -z compresses on the way across. You’ll see -avz everywhere for copying a directory tree, mostly because over a network it’s the combo that just works.

Why does the trailing slash on the source matter?

A slash on the end means “the stuff inside this folder”. So rsync -a src/ dst/ drops the files from src straight into dst. Lose the slash and rsync -a src dst/ copies the folder itself, leaving you with dst/src/. One character. It’s probably the single most common rsync mistake, and yeah, I’ve made it too.

How do I rsync over SSH to a custom port?

The -e option carries it: rsync -avz -e 'ssh -p 2222' src/ user@host:/dest/. Set a non-default port up top and the generator writes that for you. Honestly though, if you hit the same host a lot, I’d just put the port in ~/.ssh/config once and drop -e from your commands forever.

What does –delete actually delete?

It removes anything on the destination that isn’t in the source, so the two end up as an exact mirror. The source is never touched, don’t worry about that. The thing to fear is an empty or wrong source path, because rsync will happily mirror that emptiness right over your destination. Run –dry-run first and read the deletion list before you commit.

How do I resume an interrupted transfer?

Reach for -P, which is just --partial --progress in shorthand. The --partial half is the bit that matters: it keeps the chunk that already came through, so a re-run continues instead of starting the whole file from zero again. On a flaky connection with big files, this is the difference between annoying and unbearable.

Is rsync good for backups?

Yeah, it’s underneath a ton of backup setups. If you want versioned snapshots, --link-dest hard-links the unchanged files between runs so old backups barely cost disk, or you skip the hassle and let rsnapshot or Borg wrap it for you. For a plain mirror? rsync -a --delete plus a dry-run check does the job and not much more.

Sources & further reading

  • man7.org: rsync(1) man page
  • rsync: official project site

Related tools and resources

Odds are rsync isn’t the only command fighting you today. These cover the usual suspects.

tar Command Generator find Command Generator chmod Calculator Common Ports List WireGuard VPN Guide
ShareTweetPin
People Are Geek

People Are Geek

I'm Stephane, a network and systems engineer with over 15 years of hands-on experience on production infrastructure, virtualization (ESXi, Proxmox), networking, and self-hosting. Earlier in my career I built and ran a Linux resource site that became a well-known reference for sysadmins. Today I focus on cybersecurity, and I also work as a technical trainer, teaching networking and security to people who do it for a living. Everything on People Are Geek comes from real-world practice, not theory. I build every tool on this site myself, and I write about what I've actually deployed, broken, and fixed. If it's here, I've used it.

People Are Geek

Copyright © 2017 JNews.

Navigate Site

  • About PeopleAreGeek
  • Affiliate Disclosure
  • All Tools and Articles
  • Contact
  • Cookie Policy
  • Hyper-V Hub: Tools, Error Fixes and Lab Guides
  • Linux Hub: Cross-Distro Reference, Articles, Tools
  • Privacy Policy
  • Sample Page
  • Terms of Service
  • VMware vSphere & ESXi Hub: Tools, Error Fixes and Guides

Follow Us

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In
No Result
View All Result
  • Online Tools
  • Network Tools
  • Developer Tools
  • Security Tools

Copyright © 2017 JNews.