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
- Create a compressed archive
- Extract an archive
- List an archive's contents
- Connect to a server
- Create an SSH key
- Copy a file to a server
All archives and transfer commands · Bash and Linux 5 cheatsheet