The usual IT babble
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.
tar -cvpf /xen-dom0.tar --exclude "/proc/*" --exclude "/sys/*" \
--exclude "/dev/*" --exclude "/xen-dom0.tar" /
| Print article | This entry was posted by Christian on Friday, 24th July, 2009 at 15:40, and is filed under Life. Follow any responses to this post through RSS 2.0. Both comments and pings are currently closed. |
Comments are closed.