SVN repo migration from server to another server

625 views Asked by At

I tried to migrated my repo without success. My original repository is on an old Windows server and the new server is a Windows server (2012).

Steps I follow:

1/ On the old server, I create a dump.

svnadmin dump PathtoMyOldRepo > MyOldRepo.svn_dump

Here, I see all revision diplayed like

 * Revision 0 déchargée.
 * Révision 1 déchargée.
 * Rév...

All look ok

2/ I created a Repo on the new server with the follow command line:

svnadmin create --fs-type=bdb \NewRepoName

All look ok

3/ I tried to dump the old repo to the new repo and here, nothing work! Following command lines don't work:

svnadmin load /MyNewRepoName < //MyOldRepoPath

Here I've got an error message:

L'opérateur « < » est réservé à une utilisation futures

Traduction: Operator « < » is reserved to futur application

So, I tried to replacer the < with | or cat without success.

The command line svnadmin load /MyNewRepoName cat //MyOldRepoPath generated nothing. I press enter and the following message appear : Ent^te de fichier de sauvegarde malform'e traduction File Header malformed

Like you can see, I'n not very familiar with command lines and if you have a solution, I'll be very happy.

2

There are 2 answers

7
Sergey Azarkevich On
  1. Try describe problem more accurately.

You dump data to file MyOldRepo.svn_dump and then what with this file? Nothing?

Then you try load data from misterious MyOldRepoPath. What is this?

And error subversion messages usually prefrixed with Enumber. It is valuable information.

  1. Use full paths

    PC1:
    svnadmin dump c:\PathtoMyOldRepo > c:\MyOldRepo.svn_dump
    PC2:
    svnadmin load c:\PathtoMyNewRepo < c:\MyOldRepo.svn_dump
    
1
Thomas On

Just a little thing: dump and load are ok. But I can't checkout the new repo created with svnadmin create /NameOfNewRepo