"Juan Leon" <[EMAIL PROTECTED]> writes:
> What I need to do is to get the last full dump for all the cell volumes.
> But the way We are doing this is using the "backup volinfo $volname"
> within a loop, ant it's taking a lot of time, and We're trying to improve
> it.

As a first step, you might try rewriting your script so that you
invoke backup once and then send it a whole bunch of "volinfo"
commands.  The time it takes backup to start-up is pretty high, but
after that, commands complete relatively quickly.  In csh or sh
syntax, it would look something like this:

   backup << END_OF_SCRIPT
   volinfo volume-1
   volinfo volume-2
   .
   .
   .
   END_OF_SCRIPT

A more flexible approach could be constructed using pipes if you're
writing in Perl or C.

> Or... Does any body have the structure of the database for the buserver ?

Taking this approach would probably be very fast, but wouldn't
necessarily survive an upgrade from one version of AFS to the next.
The format of the /usr/afs/db files is by no means set in stone.

Joe Jackson,
AFS Product Engineer,
Transarc Corp.

Reply via email to