To exclude a specific file extension (say .class) we can use –exclude “*.class” (or –exclude=”*.class”). Note that it can be repeated multiple time.
$ rsync --exclude "*.class" --exclude "*.jar" -a src_dir machine1.com:dest_dir/
To exclude a specific file extension (say .class) we can use –exclude “*.class” (or –exclude=”*.class”). Note that it can be repeated multiple time.
$ rsync --exclude "*.class" --exclude "*.jar" -a src_dir machine1.com:dest_dir/