Exclude more than one directory with rsync

To exclude a single directory with rsync use the following command

rsync -av -e --exclude='/directory-path/' ip:/destination-folder

rsync -av -e --exclude='/directory-path-1' --exclude='/directory-path-2/*' ip:/destination-folder

Leave a Reply