Z
Z
zhdoon2018-09-20 13:13:18
Data archiving
zhdoon, 2018-09-20 13:13:18

How to create an archive without some subfolders?

There is a folder:
/folder/
../subfolder1/
../subfolder2/
../subfolder3/ I archive it
entirely with the command zip -r folder.zip folder
How to archive a folder except, for example, the subfolder subfolder3 ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
ISE73, 2018-09-20
@ISE73

We read man zip
We find exclude there.
We write something like this:
zip -r folder.zip folder -x subfolder3/\*

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question