To migrate the existing SVN repository data on one server to another, you need to retain all the version numbers and versions.
No. 1 export the warehouse to be migrated: svnadmin dump warehouse Name> svn_dump
No. 2 create a repository on the new server: svnadmin create svnroot
No. 3 run the svn_dump command to import the exported file: svnadmin load svnroot <svn_dump
// Note that the above operations will lead to the loss of all configurations, such as passwords and permission control. You only need to overwrite the original CONF file.
During the entire operation, you should pay attention to the warehousing path problem. To avoid errors, you can use absolute paths to represent the above content, and only use No. 3 for instance parsing.
Svnadmin load D: \ svnroot <D: \ svn_dump resolution: the new storage svnroot is created under the root directory of the d disk, and the exported files are saved in the root directory of the local D disk.
There is an online method to copy the original repository directory to another machine, and then modify the Apache SVN path to point to the new address. I also tried it once, missing information found, not detailed, so not recommended
Another problem is that I checked that the size of the original warehouse file to be exported is only about 2 GB, while the number of files exported using the svnadmin command is 5 Gb. I do not know the difference between them, therefore, we recommend that you use SVN commands to import data to the repository.