I need to copy all the .class files from server to local with all dir reserved. e.g. server:/usr/some/unknown/number/of/sub/folders/me.class will be /usr/project/backup/some/unknown/number/of/sub/folders/me.class the problem is, there are many other useless files such as .svn-base files that i don’t want. how can i filter them so I only scp .class files?
I need to copy all the .class files from server to local with all
Share
I’d probably recommend using something like
rsyncfor this due to itsincludeandexcludeflags, e.g:-Some other useful flags:
-rfor recursive-afor archive (mostly all files)-vfor verbose output-eto specify ssh instead of the default (which should be ssh, actually)