Efficiently transfer deltas to a remote server.
Section: Copy and Synchronize
Sync a directory over SSH
bash
bash
rsync -aP /src/ user@host:/backup/Explanation
Efficiently transfer deltas to a remote server.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Copy and Synchronize
Mirror a directory with rsync
Powerful local or remote copy preserving metadata and ACLs when supported.
Mirror and delete removed files
Make the destination match the source exactly.
Show throughput for a pipeline
Add transfer progress to streaming backup pipelines.
Compute a checksum for a backup
Record integrity hashes for backup artifacts.
Copy a directory tree preserving metadata
Preserve mode, ownership, timestamps, and symlinks.