Windows Server SVN migration to Linux server svn<3>

Source: Internet
Author: User

Windows:

How to migrate svn from Windows Server, the first thing to do is to edit a bat file. (for multiple library environments)

Export.bat

Svnadmin Dump D:\Repositories\cms_ios > D:\svnbak\cms_ios.dump

After all dump, compress the package into zip and upload it to the server with WINSCP.


Linux:

Create the Library directory, edit the permissions file and the password file.

Mkdir-p/data/svndata/

Svndata is the SVN server root directory (the repository is in this directory)

Decompression: Unzip Svnmove.zip

Scenario: If you migrate too many libraries, it is recommended to use a script to handle

eg

#创建目录及导入
#!/bin/sh
cd/data/tmp/
For name in ' ls '
Do
str=${name%.dump*}
Mkdir-p/data/svndata/$str
Svnadmin create/data/svndata/$str
Svnadmin load/data/svndata/$str </data/tmp/$name
Done


PS: (This script works to find all the dump files in the/data/tmp directory and create the project name in the/data/svndata/directory and import the dump file.) )


Taking Cms_ios.dump as an example

Cd/data/tmp

Cms_ios.dump

Mkdir-p/data/svndata/cms_ios
Svnadmin Create/data/svndata/cms_ios
Svnadmin Load/data/svndata/cms_ios </data/tmp/cms_ios.dump


Migration complete

Then configure the permissions file and password file, SVN user password can be produced randomly generated 5 characters.

Execution: Date +%s | Sha256sum | Base64 | Head-c 5



Privilege Profiles

Mkdir/data/svndata/conf

Authz Permissions File

SECURITY_PASSWD Ciphertext file

passwd plaintext Files

svnserve.conf configuration file



Start the SVN server

Svnserve-d-r/data/svndata--config-file/data/svndata/conf/svnserve.conf

Note: This allows all libraries under the/data/svndata/directory to be controlled by svnserve.conf specified Authz and passwd



This article is from the "7835882" blog, please be sure to keep this source http://crfsz.blog.51cto.com/7835882/1841225

Windows Server SVN migration to Linux server svn<3>

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.