Saturday, December 7, 2013

Copy a tree structure but just get all the files which match a pattern


rsync -avm --include='*.ogg*' -f 'hide,! */' parsifal parsifal-oggs

I think the hide thing was to stop it copying directories that didn't have any ogg files, but I'm not sure anymore.

No comments:

Post a Comment