[ale] more tar
David S. Jackson
dsj at sylvester.dsj.net
Fri Jul 21 17:15:43 EDT 2000
Okay, so far I like the tar cvfz tarball.tar.gz ./dirname idea
the best. But what if I want to only update the changed files
from dirname to tarball.tar.gz? I guess I can't update a
compressed tarball, so do you have to gunzip it, update it, then
regzip it?
Example:
tarball.tar.gz exists for /pathto/dirname.
if [ -f tarball.tar.gz ]; then
gunzip tarball.tar.gz
tar uvf tarball.tar ./pathto/dirname | gzip -9 > tarball.tar.gz
else
tar cvfz tarball.tar.gz ./pathto/dirname
fi
I'm ashamed I don't know this stuff better, but I guess I'd sure
as hell better learn it now. info tar is huge; it's taking me
time to read it through. :-)
Oh, I got unsubscribed from the list, so please reply to me
individually, okay?
TIA!
--
David S. Jackson dsj at dsj.net
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
The cost of feathers has risen, even down is up!
--
To unsubscribe: mail majordomo at ale.org with "unsubscribe ale" in message body.
More information about the Ale
mailing list