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 and filenames in it.

sample exclude file

/home/logs/apache/access.log
/home/logs/tomcat/catalina.out

but after using the below command, the zip command is not excluding the files rather archiving them.

zip archives.2012.zip /home/logs/ -x@exclude.lst

how can I overcome this ? and is there any other way to archive files by excluding the above files.

Edit
Report