I'm running the following rsync command
rsync --times -v --recursive --compress --exclude "*.svn" --rsh=/usr/bin/ssh source/folder/ user@ip:httpdocs/
which excludes *.svn files when running. My question is how do I pass it a list of file types to exclude. There are a lot of non-essential hidden files in our development copy (IDE project files and osx specific files)
I need to pass in a list of 5 or 6 file extensions for rsync to ignore.
thanks
Best Answer
Use the --exclude-from option, and specify a text file with all the patterns you want to avoid in it, like: