Data Migration in the Subversion Database

Source: Internet
Author: User
Tags subversion client


The Subversion database data migration company's Subversion server often shuts down automatically due to computer hardware reasons. You need to reinstall a server. The original Subversion Server was deployed on Windows XP using the VisualSVN Server. Now, we take this opportunity to migrate it to the Linux system. Therefore, you need to migrate the original version Library to the new server. The method for installing the Subversion server on www.2cto.com Linux is described in the previous article. This article only describes how to migrate version database data on the previously configured Subversion server. After the following two simple steps, the version library is migrated. 1. on the old server, export the version Library to the dump file on the Windows installed in the original Subversion. > Svnadmin dump myrepos> myrepos. after a long time, dump obtains a large file named myrepos. dump: this file is much larger than the original version library itself, because in the file, each version of each file is saved in the form of complete text. Svnadmin dump reads the revision tree from the version library and performs the same process as other "readers" (such as svn checkout). Therefore, you can run this command safely at any time. Www.2cto.com 2. On the new server, import the version library to copy the myrepos. dump file to the new server, create a new version library, and import the dump file. $ Svnadmin create/home/svn/repos/myrepos $ svnadmin load/home/svn/repos/myrepos <myrepos. dump
It takes a long time for the svnadmin load command to import each revision in the dump file in sequence. This process is the same as the operation that uses the common Subversion client to directly submit to the version library, therefore, a new version library that is identical to the original version library is obtained.

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.