rsyncing files with a given extension 2015-06-17 | tagged with rsync notes I’ve forgotten this enough times that I’m finally going to write it down. Say you want to copy files with extension .ext in ./dir to host. rsync can do this with, rsync -vza --include='*.xcorr-0-1' --include='*/' --exclude='*' dir host:dir