Contents
Here’s how to not include /node_modules/
zip -r file.zip folder -x "**/node_modules/*"
zip -r wp-content.zip wp-content -x "**/node_modules/*"
Below is just to zip a folder
zip -r file.zip folder
To delete all the /node_modules/ folders or directories in case you did upload, here’s how
find . -type d -name "node_modules" -exec rm -rf {} +
The one below is if the /node_modules/ is immediately inside the folder.
zip -r my-archive.zip my-folder -x "my-folder/node_modules/*"
unzip foldername
zip -r backUp.zip *
rm -rf FOLDERNAME
unzip foldername
Have any questions or comments? Write them below!