Migrating SVN from one server to another server (Windows Server VISUALSVN server)

Source: Internet
Author: User

Go: http://blog.sina.com.cn/s/blog_855a24030102xp9q.html

Server environment: Windows Server 2012 Software version: VisualSVN-Server-3.4.2-x64.msi Old SVN installation path: D: \ Program Files \ VisualSVN Server \ bin Old SVN repository path: D: \ Repositories Old SVN repository backup path: D: \ VisualSVN_bak New SVN installation path: C: \ Program Files \ VisualSVN Server \ bin New SVN repository path: D: \ Repositories Old SVN repository backup path: D: \ VisualSVN_bak Today I migrated between SVN servers and encountered a little problem Write it down so that other friends who encounter this problem can quickly solve the problem. First briefly write the operation steps. It is divided into three steps:
 A. Export version, copy the exported version file to the target server
 2. Create a new library on the target server SVN, and import the version to the target server.
Three. Migrate users.

1. Export the version to a backup file.
 1. Open a command prompt window and navigate to the bin folder of the SVN installation directory.d: cd D: \ Program Files \ VisualSVN Server \ bin
  2.Use the svnadmin dump command to backup the version. The following command is to export D: \ Repositories \ TEST to D: \ VisualSVN_bak \ TEST.dump file. Svnadmin dump D: \ Repositories \ TEST> D: \ VisualSVN_bak \ TEST.dump encountered A problem: svnadmin: E205000: Try 'svnadmin help' for more info svnadmin: E205000: Too many arguments There are too many parameters. This error is because there are spaces in the path, such as D: \ Program Files \ VisualSVN Server. When this error occurs, the solution is to modify the path to a path without spaces.
 3. For the export process, copy the TEST.dump under D: \ VisualSVN_bak to the target server D: \ VisualSVN_bak after exporting.

  2. Create a new database on the target server SVN, and import the backup version to the target server.
 1. Create a new repository on the target server SVN. Use the following command. Where D: \ Repositories \ is the path to the repository and TEST is the name of the repository. Svnadmin create D: \ Repositories \ TEST
2. Import the backup version. Use the following command. Where D: \ Repositories \ TEST repository path. D: \ VisualSVN_bak \ TEST.dump is the version backup file exported by the old server. Svnadmin load D: \ Repositories \ TEST <D: \ After VisualSVN_bak \ TEST.dump is completed, compare the number of library files and versions of the source server and the target server.


Three. Migrate users.
Copy the htpasswd and VisualSVN-GlobalWinAuthz.ini files in the source server SVN warehouse directory to the target server SVN warehouse directory to overwrite.
(Go) Migrate SVN from one server to another (Windows Server VisualSVN Server)

Related Article

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.