🔑rsync
Also known as rsync Command, rsync over SSH, Remote Sync
A tool that makes two folders match. It sends only what changed.
Think of it like
Think of it like packing for a trip. You only pack what is not there yet.
Example
Lucy's website has 2,000 files. She edits two of them, runs rsync, and only those two travel to the server.
Why it matters
Big copies you make again and again take seconds, not minutes.
Definition
Example code
bash
rsync -av site/ lucy@203.0.113.10:/var/www/site/Common mistake
Key takeaways
- 1Only changes. Skips what is already there.
- 2Over SSH. Same login and keys.
- 3Mind the slash. It changes what is copied.