Sync Two Directories in Ubuntu using rsync

To sync two directories, use rsync with the following command:
rsync --recursive --verbose --delete --progress /from/this/source/ /to/this/destination/
To view the resulting changes without applying them, add the --dry-run option.
rsync --recursive --verbose --delete --progress --dry-run /from/this/source/ /to/this/destination/
This post is available on GitHub.
Posted .

Comments

Leave a Reply