[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] more tar
- Subject: [ale] more tar
- From: dsj at sylvester.dsj.net (David S. Jackson)
- Date: Fri, 21 Jul 2000 17:15:43 -0400
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.