[svnbook] r4017 committed - * en/book/ch06-server-configuration.xml...
svnbook at googlecode.com
svnbook at googlecode.com
Thu Aug 18 16:25:17 CDT 2011
Revision: 4017
Author: cmpilato at gmail.com
Date: Thu Aug 18 14:22:26 2011
Log: * en/book/ch06-server-configuration.xml
Switch to source-url-having syntax for svnsync operations.
http://code.google.com/p/svnbook/source/detail?r=4017
Modified:
/trunk/en/book/ch06-server-configuration.xml
=======================================
--- /trunk/en/book/ch06-server-configuration.xml Wed Aug 17 11:21:25 2011
+++ /trunk/en/book/ch06-server-configuration.xml Thu Aug 18 14:22:26 2011
@@ -3027,11 +3027,10 @@
<para>Now that you've configured
your <literal>Location</literal> blocks on master and
slaves, you need to configure the master to replicate to
- the slaves. This is done the usual way—
- using <command>svnsync</command>. If you're not familiar
- with this tool, see
- <xref linkend="svn.reposadmin.maint.replication"/> for
- details.</para>
+ the slaves. Our walkthough uses <command>svnsync</command>,
+ which is covered in more detail in
+ <xref linkend="svn.reposadmin.maint.replication.svnsync"
+ />.</para>
<para>First, make sure that each slave repository has a
<filename>pre-revprop-change</filename> hook script which
@@ -3044,16 +3043,20 @@
<informalexample>
<screen>
-$ svnsync init http://slave1.example.com/svn-proxy-sync
file:///var/svn/repos
+$ svnsync init http://slave1.example.com/svn-proxy-sync \
+ file:///var/svn/repos
Copied properties for revision 0.
-$ svnsync init http://slave2.example.com/svn-proxy-sync
file:///var/svn/repos
+$ svnsync init http://slave2.example.com/svn-proxy-sync \
+ file:///var/svn/repos
Copied properties for revision 0.
-$ svnsync init http://slave3.example.com/svn-proxy-sync
file:///var/svn/repos
+$ svnsync init http://slave3.example.com/svn-proxy-sync \
+ file:///var/svn/repos
Copied properties for revision 0.
# Perform the initial replication
-$ svnsync sync http://slave1.example.com/svn-proxy-sync
+$ svnsync sync http://slave1.example.com/svn-proxy-sync \
+ file:///var/svn/repos
Transmitting file data ....
Committed revision 1.
Copied properties for revision 1.
@@ -3062,7 +3065,8 @@
Copied properties for revision 2.
…
-$ svnsync sync http://slave2.example.com/svn-proxy-sync
+$ svnsync sync http://slave2.example.com/svn-proxy-sync \
+ file:///var/svn/repos
Transmitting file data ....
Committed revision 1.
Copied properties for revision 1.
@@ -3071,7 +3075,8 @@
Copied properties for revision 2.
…
-$ svnsync sync http://slave3.example.com/svn-proxy-sync
+$ svnsync sync http://slave3.example.com/svn-proxy-sync \
+ file:///var/svn/repos
Transmitting file data ....
Committed revision 1.
Copied properties for revision 1.
@@ -3091,9 +3096,12 @@
#!/bin/sh
# Post-commit script to replicate newly committed revision to slaves
-svnsync sync http://slave1.example.com/svn-proxy-sync > /dev/null
2>&1 &
-svnsync sync http://slave2.example.com/svn-proxy-sync > /dev/null
2>&1 &
-svnsync sync http://slave3.example.com/svn-proxy-sync > /dev/null
2>&1 &
+svnsync sync http://slave1.example.com/svn-proxy-sync \
+ file:///var/svn/repos > /dev/null 2>&1 &
+svnsync sync http://slave2.example.com/svn-proxy-sync \
+ file:///var/svn/repos > /dev/null 2>&1 &
+svnsync sync http://slave3.example.com/svn-proxy-sync \
+ file:///var/svn/repos > /dev/null 2>&1 &
</programlisting>
</informalexample>
@@ -3113,9 +3121,15 @@
# Post-revprop-change script to replicate revprop-changes to slaves
REV=${2}
-svnsync copy-revprops http://slave1.example.com/svn-proxy-sync ${REV} >
/dev/null 2>&1 &
-svnsync copy-revprops http://slave2.example.com/svn-proxy-sync ${REV} >
/dev/null 2>&1 &
-svnsync copy-revprops http://slave3.example.com/svn-proxy-sync ${REV} >
/dev/null 2>&1 &
+svnsync copy-revprops http://slave1.example.com/svn-proxy-sync \
+ file:///var/svn/repos \
+ -r ${REV} > /dev/null 2>&1 &
+svnsync copy-revprops http://slave2.example.com/svn-proxy-sync \
+ file:///var/svn/repos \
+ -r ${REV} > /dev/null 2>&1 &
+svnsync copy-revprops http://slave3.example.com/svn-proxy-sync \
+ file:///var/svn/repos \
+ -r ${REV} > /dev/null 2>&1 &
</programlisting>
</informalexample>
More information about the svnbook-dev
mailing list