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


Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.