-- "Anthony E." <[EMAIL PROTECTED]>
>> How can I get this to tar the entire backup
>> directory? And if I wanted to
>> say pic out all file based on extensions later on
>> like .pl *.pl how to do
>> that as well with this?
gnu cpio will write tar:
find $dir | cpio -ov -Htar | gzip --best > /blah/$dir.tar.gz;
or
find $dir -name '*.pl' | cpio -ov -Htar | gzip ...
the -Hcrc puts a 32-bit crc on the files for better error
checking, etc:
find $dir -name '*.pl' | cpio -ov -Hcrc | gzip ...
Nice thing about cpio vs. tar for this is that if tar fails
to write it can exit zero after successfully telling you that
it failed; cpio croaks and exits non-zero immediatly if it
detects an error on writing or extract.
--
Steven Lembark 2930 W. Palmer
Workhorse Computing Chicago, IL 60647
+1 800 762 1582