Home / How to exclude more than one directory with rsync?

How to exclude more than one directory with rsync?

To exclude a directory with rsync, use -av and -e.

# rsync -av -e –exclude=’/path/’ ip:/path/to/destination To exclude multiple directories with rsync, use -av and -e again. # rsync -av -e –exclude=’/path/to/file’ –exclude=’/path2/*’ ip:/path/to/destination

Purchase Dedicated Servers

Select, configure, and buy!

Click Here

Leave a Reply