Svn – Reset old SVN repository or convert to git

migrationreinstallsvn

I have a SVN repository which was running locally when I had an old installation of Windows. After reinstalling Windows, obviously the old SVN server installation was removed, and now I have no idea how to still use this old repository? I haven't tried the svn create on the old server, as I am afraid that I'll lose everything in the repo?

I need to either still be able to use this using any SVN server software, or convert it to git. Either is fine!

Any help would be appreciated.

Best Answer

  1. Make a copy of the SVN repo somewhere
  2. to be safe, create a dump from that

    svnadmin dump "C:\PATH\TO\REPO" > "C:\svnrepo.dump"

  3. Create a new repo like you used to (e.g. svnadmin create "C:\SomeRepo")

  4. Load the dump to the new repo

    svnadmin load "C:\SomRepo" < "C:\svnrepo.dump"

I don't have windows at hand so I could not verify the '<' '>' usage but that's basically it. Do note that you might have to give full path to svnadmin.exe in your system unless it's in your %PATH.

Windows subversion example

Windows subversion download link