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/
Did this help you? Please let me know with a comment. Thank you
Posted .

Comments (RSS)

Leave a comment