Re: Next Bash Problem

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Nathan England
Date:  
To: plug-discuss
Subject: Re: Next Bash Problem
On Saturday 12 February 2005 13:30, Kevin Brown wrote:
> Nathan England wrote:
> > Okay, I've got it copying files...
> > But using the same method, is there a way to compress the files on the
> > fly? I need it to append each file to a tar archive, which is simple, but
> > when I introduce the compression, it doesn't work.
> >
> > find . | tee output
> > while read file ; do
> > ??? compress tar command ???
> > done < output
> >
> > How would I do this?
> >
> > just doing:
> > tar -rf "$file" $TMP/backup/stuff.tar
> >
> > works great. But if I use a gz or bz2 file it just errors. Is this even
> > possible?
> >
> > I can get it to work with .zip, but I'd prefer bz2.
>
> finish the loop adding all the files, then run gzip or bzip2 on the final
> tar file.


That works, but then I don't get the progress dialog... Defeats the purpose.
I am using zip instead, it works on the fly and appends to the compressed
archives, so it works okay.

nathan


>
> ---------------------------------------------------
> PLUG-discuss mailing list -
> To subscribe, unsubscribe, or to change you mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss

---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss