We help IT Professionals succeed at work.

Linux: Recursively copy all files except .zip files

skij
skij asked
on
From a Linux command line, how can I recursively copy all files including directory structures, except .zip files?
Comment
Watch Question

IT Guru
Most Valuable Expert 2011
Commented:
From the directory you want to copy:
find . ! -name "*.zip" | cpio -pdm ../destinationdir

Open in new window

jakosysadmin

Commented:
also,
rsync -a --exclude=*.zip /sourcedir /destinationdir