Rsync Command Builder

Quick Answer

rsync synchronizes directories locally or over SSH, transferring only changed blocks after the initial run. The wrong flag combination silently deletes destination files with `--delete`, skips permission preservation without `-a`, or overwrites production data without a dry-run preview. Remote backups need `-e ssh`, trailing slashes change whether the directory itself or its contents are copied, and exclude patterns must be repeated per rule or loaded from a file. This builder takes source and destination paths, toggles archive mode, compression, delete, partial resume, dry-run, and SSH transport, then assembles the full command in a live preview panel. Add comma-separated exclude patterns for `*.log`, `.git`, or `node_modules` without memorizing flag order. Click Copy Command to paste into your terminal. Always enable dry-run before `--delete` on a mirror job — deleted files do not come back. Runs in your browser with no account. Pair with the rsync remote backup snippet for cron scheduling and SSH key setup.

How to use the Rsync Command Builder

  1. 1Enter the source path (local directory) and the destination (local path or user@host:/path for remote).
  2. 2Toggle the options you need: archive mode, compression, --delete, dry-run, partial resume, and SSH transport.
  3. 3Add comma-separated exclude patterns to skip files like *.log, .git, or node_modules.
  4. 4The rsync command updates live in the output panel. Click "Copy Command" to paste it into your terminal.

Run this script on a real Linux server

Get $200 free credit — DigitalOcean

Get $200 Free →

Affiliate link · we earn a commission

Frequently Asked Questions

faq — tool

What does rsync -avz do?

The -a flag enables archive mode (preserves permissions, timestamps, symlinks, and directory structure). The -v flag shows verbose output so you can see which files are transferred. The -z flag compresses data during transfer to save bandwidth. Together they form the most common rsync invocation for backups.

faq — tool

How do I rsync to a remote server over SSH?

Use the format: rsync -avz -e ssh /local/path/ user@host:/remote/path/. The -e ssh flag tells rsync to use SSH as the transport. Make sure SSH key authentication is set up to avoid password prompts in automated scripts.

faq — tool

What does --delete do in rsync?

The --delete flag removes files on the destination that no longer exist in the source. This makes the destination an exact mirror. Always run with --dry-run first to preview deletions before they happen — deleted files cannot be recovered.

faq — tool

How do I exclude files from rsync?

Use --exclude for each pattern: rsync -av --exclude="*.log" --exclude=".git" /src/ /dest/. Patterns support wildcards. For complex exclusions, use --exclude-from=file.txt with one pattern per line.

Related Scripts