Re: tar block question
On Sun, Sep 14, 2008 at 1:16 PM, Mag Gam <firstname.lastname@example.org> wrote:
> So, what do you recommend for such an annoyance? rsync takes a while
> for me. But I rather I have 1 large tar file and untar as needed.
tar isn't the best tool to use for the job, especially if you need 1
file out of the tarball because it has to sequentially go through the
tar file until it hits the end. Your desired file might be at the
beginning, but it could be towards the end of the tarball. In any
event, having to stat / open (other file i/o) on 30K files is your
bottleneck, and in cases like this, rsync would fare better, since it
doesn't have to copy all the files, only ones that have changed. Of
course, the first run will take more time.