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