KitBench

Practical Mac, terminal, and digital workflow guides tested on real hardware.

Tested Mac and terminal guides.

3–4 minutes

Using rsync on macOS for reliable incremental folder backups

Master trailing slashes, safe –dry-run previews, –exclude filters, and Homebrew rsync 3.x vs. macOS openrsync so incremental folder backups stay predictable.

KitBench guide cover for incremental folder backups with rsync on macOS

Sources are linked in this article. Found an error? Report a correction.

rsync copies only changed files and modified byte blocks. On macOS, it is one of the fastest ways to mirror project folders or photo archives to an external SSD or local NAS. Two habits prevent almost every mistake: check trailing slashes on your source path, and run --dry-run (-n) before adding --delete.

Verified with Homebrew rsync 3.5.1 (protocol 33) on Apple Silicon macOS 27.2.1. Note that Apple’s stock /usr/bin/rsync on recent macOS builds is openrsync (and older releases shipped rsync 2.6.9), which omits several flags available in Homebrew’s GPLv3 rsync 3.x.

Check which rsync binary your Mac runs first

Run which -a rsync and rsync --version before copying flags from Linux guides. Installing Homebrew rsync (brew install rsync) adds single-line total progress (--info=progress2) and consistent extended-attribute handling:

which -a rsync
rsync --version | head -n 2

How trailing slashes change the destination path

One missing slash on the source path changes where files land:

CommandResult on destination
rsync -av ~/Projects/ /Volumes/Backup/Projects/ (with trailing slash)Copies the contents of Projects directly into /Volumes/Backup/Projects/.
rsync -av ~/Projects /Volumes/Backup/ (without trailing slash)Creates /Volumes/Backup/Projects/ and places the folder inside it.
rsync -av ~/Projects /Volumes/Backup/Projects/ (common mistake)Creates a nested duplicate at /Volumes/Backup/Projects/Projects/.

Starter command for Mac-to-external-SSD incremental backups

Start with a dry run (--dry-run) and itemized output (--itemize-changes) so rsync prints every planned copy or update without modifying a single byte:

# Step 1: Dry run to inspect every planned change
rsync -avh --dry-run --itemize-changes   --exclude='.DS_Store'   --exclude='node_modules/'   --exclude='.venv/'   ~/Projects/ /Volumes/WorkBackup/Projects/

# Step 2: Execute for real after verifying the preview
rsync -avh --info=progress2   --exclude='.DS_Store'   --exclude='node_modules/'   --exclude='.venv/'   ~/Projects/ /Volumes/WorkBackup/Projects/

In that command, -a (archive) preserves symlinks, permissions, and timestamps recursively, -v and -h print readable file sizes, and --info=progress2 shows total transfer percentage and speed across the whole run (requiring Homebrew rsync 3.1+).

Use –delete with a safety folder

By default, rsync leaves deleted source files behind on the destination. Adding --delete keeps the mirror exact, which saves space but also removes files you deleted by accident on your Mac. Pair --delete with --backup --backup-dir so removed or overwritten destination files move into a dated archive folder instead of disappearing immediately:

STAMP=$(date +%Y-%m-%d_%H%M)
rsync -avh --delete   --backup --backup-dir="/Volumes/WorkBackup/_deleted/${STAMP}"   --exclude='.DS_Store'   --exclude='node_modules/'   ~/Projects/ /Volumes/WorkBackup/Projects/

Syncing to an exFAT drive requires different flags

exFAT does not store Unix permissions or symlinks and rounds modification times to 2-second steps. Running rsync -a against an exFAT drive often recopies unchanged files every run unless you switch to rsync -rtvh --modify-window=2. On Mac-only backup disks, formatting as APFS Encrypted avoids that problem completely (see APFS vs. exFAT for external SSDs on Mac).

Schedule and size your backup runs

To automate an evening rsync job with macOS launchd or cron, build your schedule and StartCalendarInterval XML with our Cron and launchd Schedule Builder, and check copy durations with our Backup and Transfer Time Calculator. Always pair local rsync mirrors with an off-site copy as outlined in our 3-2-1 Mac backup strategy.

How to read –itemize-changes and verify completed backups

Passing --itemize-changes (-i) during a dry run prints an 11-character status code beside every path so you know why rsync plans to touch a file before committing:

  • >f+++++++++ means a brand-new file will be copied to the destination.
  • >f.st...... means an existing file changed in size (s) and modification time (t) and will be updated.
  • *deleting warns that a file on the destination will be removed (or moved into --backup-dir if configured).

If an rsync job runs inside a shell script against an external SSD, always guard the mount point first so the script exits immediately if the external disk is unplugged. Without that check, rsync can accidentally create a local folder under /Volumes/WorkBackup on your internal SSD and fill up your Mac’s boot drive:

#!/usr/bin/env bash
set -euo pipefail
DEST="/Volumes/WorkBackup/Projects"
if [ ! -d "/Volumes/WorkBackup" ]; then
  echo "Backup drive not mounted; aborting." >&2
  exit 1
fi
rsync -avh --info=progress2 --exclude='.DS_Store' ~/Projects/ "$DEST/"

Once a run finishes, verify the exit code is 0 (or check --stats at the end of the log to confirm total bytes transferred and zero I/O errors).

Sources and verification

  • rsync Official Manual: rsync(1) man page.
  • Verified with Homebrew rsync 3.5.1 (protocol 33) on Apple Silicon macOS 27.2.1, December 2, 2026.

Stay in the loop

Get tested Mac, terminal, and workflow guides when new tutorials publish. Unsubscribe anytime.

Comments

Questions, corrections, and useful counterpoints are welcome. Keep comments specific and on topic.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.