SHARE
TWEET

Untitled

a guest Aug 19th, 2019 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top