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>