Zip exclude

To zip a folder but to exclude subdirectories then use the following.


Do not forget the double-quotes.

zip -r wp-content.zip public/wp-content -x "public/wp-content/uploads**"

 

Gareth
Buy Me A Coffee
back arrowBack to Index