Recursively copy only files with certain extension with rsync


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

Useful for syncing only MP3 or PDF files which are nested in a deep directory tree


Copy this code and paste it in your HTML
  1. rsync -rvtW --delay-updates --modify-window=1 --progress --include='*.pdf' --include='*.mp3' --exclude='*.*' source dest

URL: http://www.supermind.org/blog/873/recursively-copy-only-files-with-certain-extension-with-rsync

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.