How do I load a dump file into my Subversion repository?

Subversion has been removed from the DreamHost panel. If you had previously configured Subversion on your domain, it will continue to function normally.

Overview

If you have an SVN repository that you wish to migrate to a new server, you should first create a dump file. Once that is created, proceed with the steps below to import it into your new repository on your new server.

The commands below assume that the SVN repo you previously backed up is named dumpfile.gz. The file path for the svnadmin load command assumes that your new SVN repository is in the /home/username/svn/ directory on your new server and that it's named New_Repo.

Loading the file

  1. Locate the backed up SVN repository you had previously created a dump file for.
  2. Upload dumpfile.gz to your new server in the user's home directory via FTP.
  3. Run the following to decompress the file, while importing it into your new repository:
    [server]$ gunzip -c dumpfile.gz | svnadmin load ~/svn/New_Repo

See also

Did this article answer your questions?

Article last updated PST.

Still not finding what you're looking for?