Rsync
Frequently used rsync
parameters:
-n
- Perform a trial run (or dry run), showing which changes would be made.
-P
- Show progress during the transfer, and keep partially transferred files.
-a
- Archive mode – copy files recursively, and preserve permissions and modification times.
-h
- Show human-readable file sizes.
-v
- Increase verbosity.
-z
- Use compression during the transfer.
--exclude .DS_Store
- Avoid littering when copying from a macOS system.