Exclude a directory from tar

Damn tar is kinda weird .. usually, you specifiy excludes in the manner of –exclude="/path/to/exclude". But tar needs to do things differently. 1 2 tar -cvpf /xen-dom0.tar --exclude "/proc/*" --exclude "/sys/*" --exclude "/dev/*" --exclude "/xen-dom0.tar" /

July 24, 2009 · 1 min · 36 words · christian