zip archive exclude specific directory

(Last Updated On: May 31, 2020)

 

zip -r workroot-backup.zip /workroot/ /etc/nginx/conf.d -x */node_modules/**\*   */vendor/**\* */.git/**\*