SSH Command for excluded specific subdirectories when zipping a directory.
I need to backup my website but I need to exclude a couple of subdirectories content all files and folders. Then I used the below command in Putty SSH.
zip -r public_html.zip public_html -x blog/* -x portfolio/*
with the above Putty SSH command, I created the ZIP file with blog and portfolio folder.