Support Shortcuts Report a bug

Build your rsync
command.

$ one slash between a backup and an empty folder.

One missing slash and --delete removes files you meant to keep. Rynctl is a free rsync command generator that catches the trailing-slash trap, explains every flag it adds, and hands you a command you can read before you run it. Already have a command? Paste it in to see what every part does. In your browser, no account.

Paths
Source (local)
Without a trailing / rsync will copy the folder itself, creating a subdirectory at the destination.
Destination (local)
Remote Host
SSH Port (optional)
SSH Key Path (optional)
Flags

Start here: -avh is the recommended baseline for most syncs — archive, verbose, human-readable. Add flags as needed.

Extra Options
Exclude Pattern (optional — space-separated)
Bandwidth Limit (KB/s, optional)
Additional Arguments (optional)
Generated Command
Output format
Fill in the fields above and click Generate.
Token Type Description
Explain a Command

Found an rsync command in a script or a forum post? Paste it here to see what every flag, value and path does before you run it.

Command History

rsync command examples

$ common patterns — click any command to copy it

Local

Basic local folder sync

The everyday workhorse. Archive mode preserves permissions, symlinks, and timestamps. Verbose output lets you see every file being transferred.
rsync -avh /mnt/source/data/ /mnt/destination/data/
Local

Mirror with deletion

Makes the destination an exact mirror of the source. Files deleted at the source are also removed from the destination — use with care.
rsync -avh --delete /mnt/source/data/ /mnt/destination/data/
Safe

Dry run preview

Simulates the transfer without touching any files. Always a good idea to run this first when using --delete or syncing large datasets for the first time.
rsync -avhn --delete /mnt/source/data/ /mnt/destination/data/
Remote

Push to remote server over SSH

Syncs a local folder to a remote server. The trailing slash on the source is important — it means "the contents of this folder", not the folder itself.
rsync -avhz -e 'ssh -p 22' /mnt/source/data/ user@host:/remote/backup/
Remote

Pull from remote server

Fetches files from a remote server to a local path. Swap source and destination relative to the push example — rsync does not care which end is remote.
rsync -avhz user@host:/remote/data/ /mnt/destination/data/
Remote

SSH with custom key and port

Specifies a non-standard port and a particular SSH identity file. Useful when your server does not listen on port 22 or you manage multiple key pairs.
rsync -avhz -e 'ssh -p 2222 -i ~/.ssh/id_backup' /mnt/source/data/ user@host:/remote/backup/
Backup

Incremental backup with safety copies

Syncs only changed files while keeping versioned backups of anything overwritten. The --backup-dir flag collects old versions into a dated folder so nothing is lost.
rsync -avh --backup --backup-dir=/mnt/destination/versions/$(date +%Y-%m-%d) /mnt/source/data/ /mnt/destination/data/
Local

Sync with exclusions

Skips temporary files, hidden system files, and build artefacts during the transfer. Multiple --exclude flags can be stacked — rsync checks them in order.
rsync -avh --exclude="*.tmp" --exclude=".DS_Store" --exclude="node_modules/" /mnt/source/data/ /mnt/destination/data/
Safe

Bandwidth-limited transfer

Caps the transfer rate to 5 MB/s so the sync does not saturate the network. Handy for large overnight jobs or syncing over a shared connection.
rsync -avhz --bwlimit=5000 --progress /mnt/source/data/ user@host:/remote/backup/
Safe

Resume interrupted transfer

Keeps partially transferred files on the destination so that a restarted sync can pick up where it left off instead of starting each file from scratch.
rsync -avh --partial --progress /mnt/source/data/ /mnt/destination/data/
Remote

Back up to a NAS over SSH

Pushes a folder to a NAS such as Synology, TrueNAS or Unraid. --partial keeps interrupted files so the next run resumes, and the trailing slash on the source syncs the contents of the folder.
rsync -avh --partial --progress -e 'ssh -p 22' /home/user/documents/ backup@nas.local:/volume1/backups/documents/
Backup

Snapshot backups with --link-dest

Writes a dated snapshot where unchanged files are hard links into the previous snapshot, so every snapshot looks complete but only changed files take new space. Point a latest symlink at the newest snapshot after each run.
rsync -a --link-dest=/backups/latest /home/user/ /backups/$(date +%F)/

rsync flags cheat sheet

$ every flag and option this generator can add

Common rsync flags and what each one does
FlagNameWhat it does
-aarchiveRecurse + preserve permissions, times, symlinks, owner & group.
-vverbosePrint each file being transferred.
-hhuman-readableShow sizes in KB/MB/GB instead of bytes.
-zcompressCompress data during transfer. Useful on slow links.
-ndry-runSimulate without changing any files. Safe to test.
--deletedeleteRemove destination files that no longer exist at source.
--progressprogressShow per-file transfer progress bar.
--statsstatsPrint a transfer summary when done.
--checksumchecksumUse checksums (not mtime) to detect changes. Slower but thorough.
--partialpartialKeep partial files on interrupt to allow resume.
--inplacein-placeUpdate files in place instead of using a temp file.
-rrecursiveRecurse into subdirectories. (Included in -a by default.)
-Hhard linksPreserve hard links. Not included in -a.
-AACLsPreserve Access Control Lists. Not included in -a.
--backupbackupSave a copy before overwriting or deleting.
--ignore-existingignore existingSkip files already present at the destination.
--updateupdateSkip destination files newer than the source.
--no-permsno permsDo not copy permission bits to destination.
--size-onlysize onlyDetect changes by file size, not modification time.

How does rsync work?

$ the algorithm, the rules, and the flags that matter

The delta-transfer algorithm

For local transfers, rsync defaults to whole-file copies. For remote transfers, it can compare fixed-size block checksums and send only changed data. This makes incremental backups and updates efficient, especially over slower links.

The trailing slash rule

The single most common rsync mistake. /src/docs/ (with a trailing slash) means "sync the contents of docs" — so files land directly inside the destination. /src/docs (no slash) means "sync the docs folder itself" — so rsync creates a docs/ subdirectory inside the destination. When in doubt, add the trailing slash on the source.

What -a actually does

Archive mode (-a) is shorthand for -rlptgoD — it enables recursive traversal, preserves symbolic links, timestamps, permissions, group ownership, owner identity, and device files in a single flag. It does not preserve hard links (-H) or ACLs (-A), and it does not compress (-z). Those require separate flags if you need them.

Why --delete is dangerous

Without --delete, rsync is additive — it copies new and changed files but never removes anything from the destination. With it, rsync turns the destination into an exact mirror: any file at the destination that no longer exists at the source is permanently deleted. Always run a --dry-run (-n) first to preview what would be removed before committing.

SSH mode and the -e flag

When syncing to or from a remote machine, rsync delegates the transport layer to SSH via -e 'ssh'. You can set -p 2222 for a non-standard port or -i ~/.ssh/id_backup for a specific key. Keep host-key checking enabled; provision known hosts with ssh-keyscan only after verifying the server fingerprint. The remote path uses the user@host:/path format.

Bandwidth limiting and large transfers

--bwlimit=N caps throughput at N kilobytes per second, preventing rsync from saturating a shared link during business hours. Pair it with --partial so interrupted transfers resume from where they left off rather than restarting from the beginning — essential for multi-gigabyte jobs over unstable connections.

The complete flag reference lives in the official rsync manual. Read the rsync man page

rsync FAQ

$ quick answers before you run the command

What is rsync?

rsync is a fast, versatile command-line utility for synchronising files and directories between two locations, locally or over SSH. It only transfers the differences between source and destination, which makes it efficient for backups and deployments.

How do I build an rsync command with Rynctl?

Rynctl works as an rsync command builder: enter your source and destination paths, select the flags you need (archive, verbose, compress and so on), optionally enable SSH for remote transfers, then click Generate Command. The complete rsync command appears in the output box, ready to copy.

How do I sync files to a remote server with rsync?

Enable the Remote / SSH destination toggle, enter the remote host (user@hostname), set a port if needed, and give your SSH key path. Rynctl generates the matching -e 'ssh -p PORT -i KEY' argument for you.

What is the difference between rsync --delete and --update?

--delete removes files from the destination that no longer exist at the source, making the destination an exact mirror. --update skips files where the destination copy is newer than the source, so it never overwrites newer files.

What does rsync -avz mean?

It is three short flags grouped together. -a is archive mode: recurse into directories and preserve permissions, times, symlinks, owner and group. -v prints each file as it transfers. -z compresses data on the way, which helps over slow links. It is the most common starting point for copying to a remote server.

Can Rynctl explain an rsync command I already have?

Yes. Paste it into Explain a Command, under the generated command, and every flag, value and path is listed with what it does, including whether each source path has a trailing slash. Multiline commands and sudo work too. The pasted text stays in your browser and is not saved.