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.
Live in Delhi, Working in Gurgaon as Web Designer and Graphic Designer. Developed and Design myfreeonlinetools for online free tools. Also having youtube channel Name with LearnSchoolOnline. Traveling, watching movies, coding are the hobbies.