Loading From an SVN Dump File

Posted on April 14, 2008 @ 19:18 tools

Loading a subversion repository from a dump file isn't as hard as I thought it would be. It's as easy as:

> svnadmin path.to.repository.directory < repository.dump.file

You just have to make sure that:

  • you've got subversion installed or that you can hit "svnadmin.exe" directly.
  • the "path.to.repository.directory" has a repository created in it.

All that this seems to be doing is replaying every commit that ever happened on the original repository. This is pretty sweet, especially for a class room set up when the student afterwards want to go through different revisions to compare changes or things learned in class.