Zip folder recursively, save for a given sub folder (Linux)

directory, linux, zip

Solution

`zip -r base_folder.zip base_folder -x base_folder/sub_folder/\* base_folder/another_sub_folder/\*`

(I have incorporated the improved information from your experience that you have kindly offered in your comment.)

For more information: `man zip`

Problem

In Linux zip, is it possible to zip a folder recursively except for a given sub-path? For instance, to zip 'base_folder' and all its sub folders except 'base_folder/sub_folder'. Is it possible? And if so, how?

Original source