On Sat, 2006-06-03 at 21:30 +0530, Nadeem M. Khan wrote:
Why don't you use cpio instead? It gives better control over what directories to backup by piping cpio to find (with the "prune" option).
I am used to tar more than cpio. I prefer GNU tar's default behaviour of stripping the leading "/"
BTW, does your verision of tar backup special files as well (/dev/*) ?
Yes it does. See console transcript below:
# tar --version tar (GNU tar) 1.15.1 # tar -cvzf /var/tmp/devices.tar.gz /dev tar: Removing leading `/' from member names /dev/ /dev/sdb1 /dev/sdb /dev/sg1 /dev/usbdev5.3 ......... # ll /var/tmp/devices.tar.gz -rw-r--r-- 1 root root 16522 Jun 3 22:56 /var/tmp/devices.tar.gz
-- Arun Khan (knura at yahoo dot com) Hand, n.: A singular instrument worn at the end of a human arm and commonly thrust into somebody's pocket. -- Ambrose Bierce, "The Devil's Dictionary"