Advertisement
Guest User

Untitled

a guest
Aug 19th, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. rsync --include='*.txt' --exclude='*' ./* /tmp/test
  2.  
  3. --include='*.txt' --> include only files with *.txt extension
  4. --exclude='*' --> exclude everything except what is specified in --include
  5. ./* --> source directory, referring to everything inside current directory; replace with <dir_name>/* according to your case
  6. /tmp/test --> destination where to copy
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement