/kb

personal knowledgebase

Archive for the ‘gzip’ tag

Exclude several files or directories from tar

without comments

It’s very useful to be able to exclude certain files or directories when using tar. Here’s how I did in Leopard:

tar czvf FILENAME.tgz --exclude={.svn,wiki*,static} FILES_OR_DIRS_TO_TAR

Written by hgrimelid

August 9th, 2009 at 4:08 pm

Posted in Shell

Tagged with , , ,