osx - scp folder structure and only files with a specific extension -
i have huge folder structure deep subfolders, , inside these folders there files different extensions (.txt, .pdf, ...
).
what want copy whole folder structure along files .pdf
extension.
i'm using scp
there no option specify extension copy.
i tried rsync
exclude , include options did not worked , shell window forze
p.s: i'm on macosx
mountain lion , i'm trying copy fedora
16
what best way ?
rsync -rav -e ssh --include '*/' --include='*.pdf' --exclude='*' server:path localpathpath
Comments
Post a Comment