SVN service with svnsync command dual-machine hot standby

Source: Internet
Author: User

SVN service with svnsync command dual-machine hot standby

SOURCE directory: Svn://srcip/taobaotop

Target directory: Svn://desip/taobaotop

Steps:

Www.ahlinux.com

If the target directory has the same item, clear it and re-establish the empty project, for example:

Mkdir-p/data/svndata/taobaotop

Svnadmin Create/data/svndata/taobaotop

2. Start the SVN from the machine

Svnserve-d-r/data/svndata/

3. Perform on-board:

Cd/data/svndata/taobaotop/hooks

CP Pre-revprop-change.tmpl Pre-revprop-change

VI Pre-revprop-change

Change the last line of Pre-revprop-change to exit 0, then chmod 755 pre-revprop-change

4. The/data/svndata/taobaotop/conf directory on the host to a package, sent to the same path from the machine, covering decompression.

5. Performing on-board

Svnsync Init file:///data/svndata/taobaotop svn://srcip/taobaotop

Midway will ask you the root password of the host and SVN username password, fill in. And then show:

Copied Properties for revision 0. (Copy the attributes of version 0. )

6. After initialization is complete, execute

Svnsync Sync File:///data/svndata/taobaotop for synchronization

7. In order to be able to update the host, the slave automatic synchronization, need to do some operations on the host.

Create/Modify the Post-commit script under host/hooks/, adding a line to the following:

Svnsync sync--non-interactive svn://desip/taobaotop--username name--password pwd

    • This article is from: Linux Tutorial Network

SVN service with svnsync command dual-machine hot standby

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.