Zest.

Bash: Sync files with rsync

A short, tested Bash example for sync files with rsync. Copy it and adjust the names and paths for your project.

Bash
rsync -avz source/ user@host:/path/dest/     # local to remote
rsync -avz --delete source/ dest/             # mirror, remove extras
rsync -avzn source/ dest/                     # dry run

Find it in Zest

Search for “bash sync files with rsync” in Zest and this example appears above the results, with other matches to choose from. Searches stay private.

More Bash examples

All Bash examples