[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Hot to restore repo from hot-backup.py

From: Eric Gillespie <epg_at_pretzelnet.org>
Date: 2002-07-17 22:44:13 CEST

I just went to restore my repo from the backup repo-137. I copied
it over to where mod_dav_svn looks, and did a fresh checkout. Oh
crap! I got revision 136! Now i'm panicking because it looks like
hot-backup.py backs up one revision behind and i've now lost a
revision :(.

Bill Tutt told me not to worry, my revision is in the backup, i
just need to replay my logs. No one knew how to do that, however.
I poked around in /usr/local/BerkeleyDB.4.0 (which has no man pages)
and found some HTML docs. db_recover looked promising, so i gave
it a whirl. >phew< that did it.

So you may want to document in the handbook that to restore from
one of these hot backups you need to copy it into place and then

/usr/local/BerkeleyDB.4.0/bin/db_recover -ve -h ${repo}/db

Eric Gillespie, Jr. <*> epg@pretzelnet.org
Build a fire for a man, and he'll be warm for a day.  Set a man on
fire, and he'll be warm for the rest of his life. -Terry Pratchett
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Jul 17 22:44:56 2002

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.