Svn service uses svnsync command for hot standby

Source: Internet
Author: User


Svn uses the svnsync command to run the hot standby source Directory: svn: // srcIP/taobaotop target directory: svn: // desIP/taobaotop step: www.2cto.com if the target directory has the same project, clear and recreate an empty project, for example, mkdir-p/data/svndata/taobaotop svnadmin create/data/svndata/taobaotop 2. start svn svnserve-d-r/data/svndata/3. run cd/data/svndata/taobaotop/hooks cp pre-revprop-change.tmpl pre-revprop-change vi pre-revprop-change on the slave machine to change the last row of pre-revprop-change to exit 0, then chmod 755 pre-r Evprop-change 4. Pack the/data/svndata/taobaotop/conf directory on the host and send it to the same path on the slave machine to overwrite and decompress the package. 5. run svnsync init file: // data/svndata/taobaotop svn: // srcIP/taobaotop on the slave machine. You will be asked about the root password of your host and the svn username and password midway through. The result shows: Copied properties for revision 0. (copy the attribute of version 0 .) 6. after initialization, execute svnsync sync file: // data/svndata/taobaotop for synchronization. in order to automatically synchronize data from the slave when the host is updated, You need to perform some operations on the host. Create/modify the post-commit script under the host/hooks/, and add a line in it with the following content: svnsync sync -- non-interactive svn: // desIP/taobaotop -- username name -- password pwd

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.