Bash and Linux 5 · Archives and transfer

Sync a folder to a server

Copy only what changed, preserving permissions, with progress.

rsync -avz --progress folder/ [email protected]:/srv/folder/

Caution: A trailing slash on the source changes where files land. Add --dry-run to preview.

Official Bash and Linux 5 documentation

More archives and transfer commands

All archives and transfer commands · Bash and Linux 5 cheatsheet

Was this page helpful?