Thursday, October 10, 2013

rsync magic

How to transfer filtered files and its entire directory structure to other unix machine, fast, compressed and efficiently? well... rsync

rsync -azvr --include-files='*.log' --include-files='*/' -exclude-files='*' --prune-empty-dirs <source dir> <target dir>

No comments: