SVN repository migration (transferring one repository from one machine to another)

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.