Re: zip a tree file-wise?
On Mon, 10 Jan 2005 15:20:15 -0700, Hamilcar Barca
<hamilcar@tld.always.invalid> wrote:
>In article <1ju5u0dvta5df1efh4apue7kr2np1skbov@4ax.com> (Mon, 10 Jan 2005
>23:08:20 +0100), Tobias Schenk wrote:
>
>> I want to do a backup on a directory tree. It appears to be a weak
>> solution to use 'tar czf' because I guess if a few bytes are broken of
>> the archive it want be readable at all anymore?!
>
>Since it's a single (tar) file being compressed, data beyond the error
>might be unrecoverable.
>
>> What I merely do is to copy the whole directory tree to my backup disk.
>
>'cp -a SOURCE TARGET' ?
>
>> I wonder now if one could zip the files while copying and keep the
>> directory and file structure intact.
>
>infozip? Decompressing ZIP files with errors is still a problem.
>
>> I thought of using find with the exec option but then I could not
>> figure out how to create the directory tree at the destination.
>> Does anyone know a trick?
>
>'cp --parents' ?
zipfix is NOT the final answer, or even the best one. If you're
really worried about damage to the archive file being reparable, look
into rar. The 'repair file, try harder' options are the single
advantage rar has over the other archive formats, IMHO.
Mike-
--
If you can keep your head while those around you are losing theirs...
You may have a great career as a network administrator ahead!
--
Please note - Due to the intense volume of spam, we have installed
site-wide spam filters at catherders.com. If email from you bounces,
try non-HTML, non-encoded, non-attachments,
|