subversion-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Johnson <>
Subject Looking to dump/load with minimal repository downtime
Date Mon, 18 Aug 2014 23:43:27 GMT
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

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
# 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?


View raw message