Answer by Jonathon Hill for How to zip files with exclude list in linux/unix
It is possible to do this in two steps:zip archive.zip -r -@ < include.lstzip archive.zip -d -@ < exclude.lst
View ArticleAnswer by Mars for How to zip files with exclude list in linux/unix
Old question, so zip may have changed since then, but from the man pages:$man zip | grep -A2 excludeAlso possible:zip -r foo foo -x@exclude.lstwhich will include the contents of foo in foo.zip while...
View ArticleAnswer by FullStack Alex for How to zip files with exclude list in linux/unix
Just a short addition to CBR's answer for the case you have a bunch of files to exclude (in my case files bigger than 10MB):do_not_archive=$(find relative/path/to/directory -type f -size +10000000c)zip...
View ArticleAnswer by cbrdy for How to zip files with exclude list in linux/unix
Instead of creating exclude.lst file, I'm assigning all the exclude files to a variable and passing those to the -x option in the zip. For exampledo_not_archive=/home/logs/apache/access.log...
View ArticleHow to zip files with exclude list in linux/unix
I have a list of files that I want to zip but I also have a list to exclude files and do not want them to be included in the zip archive.so I have created a exclude.lst file and it has absolute path...
View Article
More Pages to Explore .....