Just upgraded my server from 1.7 to 1.8.

Now looking to do a dump and load of all the repositories hosted on the
server.

I've got a crazy idea for minimizing downtime - since the servers are *not*
being constantly bombarded with commits, I'm thinking that I can just do a
dump/load on the fly, and see if any commits came in while the dump was
happening, and if they did, try the dump again.

That is:

STARTREV = `svnlook youngest repodir/$REPONAME`
svnadmin create reload/$REPONAME
svndump repodir/$REPONAME | svnadmin load reload/$REPONAME
ENDREV = `svnlook youngest repodir/$REPONAME`
if "$STARTREV" == "$ENDREV"; then
  mv repodir/$REPONAME older/$REPONAME
  mv reload/$REPONAME repodir/$REPONAME
fi
# and if the above didn't match, repeat the above until success.

There's the tiniest bit of a race condition at the very end. But is it safe
to do an svnadmin dump on a live repository?

Eric.

Reply via email to