Quantcast
Channel: How to zip files with exclude list in linux/unix - Stack Overflow
Browsing latest articles
Browse All 5 View Live

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 Article



Answer 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 Article

Answer 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 Article

Answer 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 Article

How 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

Browsing latest articles
Browse All 5 View Live




Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596344.js" async> </script>