Linux: Recursively copy all files except .zip files

From a Linux command line, how can I recursively copy all files including directory structures, except .zip files?
LVL 10
skijAsked:
Who is Participating?
 
Terry WoodsConnect With a Mentor IT GuruCommented:
From the directory you want to copy:
find . ! -name "*.zip" | cpio -pdm ../destinationdir

Open in new window

0
 
jakosysadminCommented:
also,
rsync -a --exclude=*.zip /sourcedir /destinationdir
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.