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