You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Kees de Kooter <kd...@gmail.com> on 2006/06/07 15:43:49 UTC

How to restore from hotcopy

How can you restore a repository from backup files created with
hotcopy, and to make it even more difficult: using a newer version of
subversion than it was created with.

-- 
Cheers,
Kees de Kooter
http://www.boplicity.net

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: How to restore from hotcopy

Posted by Kees de Kooter <kd...@gmail.com>.
Fixed it!

I copied the hot copy to the new repository location. Then I executed
svnadmin recover. It was complaining:

svnadmin: DB_RUNRECOVERY: Fatal error, run database recovery
svnadmin: bdb: c:/var/svn/master/db\log.0000000002: log file open failed: No suc
h file or directory
svnadmin: bdb: PANIC: No such file or directory
svnadmin: bdb: DB_ENV->log_put: 2: DB_RUNRECOVERY: Fatal error, run database rec
overy

I then added an empty file named log.0000000002, executed recover
again and my repo was recovered!!

On 6/7/06, Kees de Kooter <kd...@gmail.com> wrote:
> How can you restore a repository from backup files created with
> hotcopy, and to make it even more difficult: using a newer version of
> subversion than it was created with.
>
> --
> Cheers,
> Kees de Kooter
> http://www.boplicity.net
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: How to restore from hotcopy

Posted by Peter Werner <l....@vasas.no-ip.org>.
> How can you restore a repository from backup files created with
> hotcopy, and to make it even more difficult: using a newer version of
> subversion than it was created with.

The easy way is to install the same version of svn that was used when
you created the hotcopy.  Make a dump (svnadmin dump).  Then you can
switch to the new svn version and load the dump (svnadmin load).

As you can see svn dump is the right way for backups.

In case of bdb engine it's possible to convert the database using
db<old>-dump | db<new>_load
I have a script doing that, which I used in the past, write me if you
need it, but I think the first solution is the right one.

Br, Péter

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org