Compressing a directory recursively but leaving some files/directories aside (source): zip -9r myarchive.zip . -x ignoreDir1\* ignoreFile1.xxx