Access our premium support and let us know your problems, we will help you solve them.

0
No products in the cart.
  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #8908
    blankDavid Hoang
    Keymaster

    For my particular system in order to exclude a directory I had to put quotes around my excluded directories and it worked like a charm:

    zip -r myarchive.zip target -x "target/exclude1/*" "target/exclude2/*"
    

    Notes:

    — this excluded both the directory to exclude and all files inside it.

    — You must use the full path to the directories you want to include and exclude!

    — As long as the excludes are at the end of the line you do not need the @ symbol

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.