Skip to content

Instantly share code, notes, and snippets.

@AnasAboreeda
Last active September 22, 2017 22:30
Show Gist options
  • Save AnasAboreeda/533091638a7169d698a4e6db26a92028 to your computer and use it in GitHub Desktop.
Save AnasAboreeda/533091638a7169d698a4e6db26a92028 to your computer and use it in GitHub Desktop.
[Zip all files in a directory]Zip All files/folders inside a directory except .zip, .git files #zip #compress #Bash #ShellScript
zip -9 -rq $(echo Archive-Name-$(date +%y%m%d%H%M).zip) . -x \*.git\* -x \*.zip\* -x \*.DS_Store\*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment