RSS

Exclude folders from zip – tar

10 Dec

TARTape Archive  (application/x-tar)

tar svnlabs

TAR - svnlabs

A common archive format used on Unix-like systems. Generally used in conjunction with compressors such as gzip, bzip2, compress or xz to create .tar.gz, .tar.bz2, .tar.Z or tar.xz files.

# tar -cvvf foo.tar foo/ –exclude=”/home/svnlabs”

# tar -cvzpP –file=/home/backup.tar.gz –exclude={/dev/*,/proc/*,/sys/*,/tmp/*} /

tar work with directory “/” except for /dev, /proc, /sys, /tmp 🙂

Advertisements
 
Leave a comment

Posted by on December 10, 2009 in CentOS, Fedora, LAMP, Linux, Tips, Tricks

 

Tags: , , , , , , , , ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: