Copy files recursive with folder hierarchy (rsync method)

416

rsync –include-from=/tmp/include.txt –exclude-from=/tmp/exclude.txt -aRvm ./src /tmp/dest

include.txt
>>*.pdf

exclude.txt
>>*.*

 

-a, –archive               archive mode; equals -rlptgoD (no -H,-A,-X)

-R, –relative              use relative path names

-m, –prune-empty-dirs      prune empty directory chains from file-list

-v, –verbose               increase verbosity