I had never worked out how to use rsync to create intermediate directories when syncing over certain filetypes (in my case nuke’s .nk files). So the other day I googled around and found exactly what i was looking for.
A great way to sync directories and certain filetypes recursively:
rsync -pavr –progress –include “+ */” -include=”*.nk” -exclude=”- *” /my/source/directory /my/destination/
And all the thanks needs to go to Mike:
2 thoughts on “Recursive rsync with only specific file types”
Wow, slinging those command lines like a real cowboy! You may want to change those n-dashes in the command line to minus (-) sings for others to copy/paste.
Hmm strange how those got in there, thanks!
(Also some of those weirdo quotation marks)