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" / |