rsync --iinclude code example
Example: rsync --iinclude
rsync -a -m --include='*.jpg' --include='*/' --exclude='*' src_directory/ dst_directory/Copy
rsync -a -m --include='*.jpg' --include='*/' --exclude='*' src_directory/ dst_directory/Copy