Skip to main content

Rsync Documentation

A structured guide to mastering rsync for server administration, backups, migrations, and deployments. From first-time setup to production-grade automated backup systems.

Learning Path​

1. Introduction​

Start here to understand what rsync does, how to install it, and the fundamentals.

2. Core Rsync​

Master the building blocks: paths, flags, and command structure.

3. Real-World Sync Patterns​

Practical patterns for syncing application code, plugins, and media.

4. Database Export + Rsync​

Combine file sync with database backups for complete server recovery.

5. Security and Permissions​

Protect your data in transit and manage file ownership correctly.

6. Compression and Bandwidth​

Optimize transfer speed and network usage.

7. Advanced Filters and Edge Cases​

Fine-tune exactly what gets synced and how to verify it.

8. Automation and Scheduling​

Run rsync on autopilot with proper error handling.

9. Backup Strategies​

Design and implement production-grade backup systems.

10. Troubleshooting​

Diagnose and fix problems when things go wrong.

11. Cheat Sheets​

Concise, mobile-friendly reference cards for every rsync feature.

Quick Start​

# Basic sync (archive mode, verbose)
rsync -av /source/ /destination/

# Remote sync over SSH
rsync -avz /local/path/ user@remote:/remote/path/

# Preview before executing
rsync -avn /source/ /destination/

# Incremental backup with snapshots
rsync -av --link-dest=/backup/latest /source/ /backup/$(date +%F)/
tip

New to rsync? Start with What is Rsync? and work through the learning path in order.