rsync only *.h files from a remote directory tree

/ Published in: Bash
Save to your folder(s)

rsync quirks

Copy this code and paste it in your HTML
  1. #get only the *.h files from the dir tree:
  2. # preserve timestamps and most of the properties
  3. rsync -atrzv --include "*/" --include "**/*.h" --exclude "**/*" -m someUser@some-host:/rootpath/path2/path2 .

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.