Skip to content

Developer Snippets

My little Snippet library.

Recent Posts

  • Windows 10: Telemetrie, Online-Suche und Microsoft-Empfehlungen reduzieren
  • JS: Mask all except the last four digits
  • Docker, check all log files
  • Delete *.log files older then 30 days
  • Find Files by Age and copy them to another directory

Categories

  • .git
  • #!/bin/bash
  • Allgemein
  • Docker
  • HTML5
  • Javascript
  • Linux
  • Odoo
  • PHP
  • Terminal / Shell / Cli
  • Windows

Zip files and exclude subdirectories

zip -r zipfile.zip directoryToZip -x  directoryToZip /subdirectoryToExclude/*  directoryToZip/SecondSubdirectoryToExclude /*
Posted on 31. October 201931. October 2019Author Alexander StroschkeCategories #!/bin/bash, LinuxTags Bash, Linux, zip

Post navigation

Previous Previous post: Encrypt Bitlocker Drive in Linux
Next Next post: Search for a string in files and save the result
Proudly powered by WordPress