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

Re: Restoring repository from svk mirror?

From: Duncan Murdoch <murdoch_at_stats.uwo.ca>
Date: 2006-06-26 16:18:11 CEST

On 6/25/2006 4:04 PM, Vincent Tondellier wrote:
> Duncan Murdoch wrote:
>> We just had a crash that took down the svn repository, and the most
>> recent copy of it is actually an svk mirror. I almost never use svk;
>> can anyone let me know if it's possible to restore the svn repository
>> from this mirror, and if so, what are the steps to do it?
> http://svk.elixus.org/?RecoverSVNMasterFromSVKMirror

Just to put a record in the archives: that page suggested two methods.
  One was to work entirely within svk, the other worked with svn. Since
I'm more familiar with svn I used that method.

svk maintains an svn repository in its depot. I dumped that repository
using svnadmin dump, used svnfilter to select out the bits I wanted, and
manually edited the Node-path and Node-copyfrom-path entries to remove
the "mirror". This was then easily loaded into a pure svn repository.

It would be nice if svnfilter could do some of the path editing; it
knows more about the context than my editor did, so it could avoid
editing content that happened to match the look of the svn dump headers.

Thanks to Vincent for pointing me to this page, and to Rembrandt Kuipers
who wrote the description of the method I used.

Duncan Murdoch

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Jun 26 16:20:13 2006

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

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