[svnbook] r4845 committed - Translation: Set up replication

svnbook at googlecode.com svnbook at googlecode.com
Wed Jun 25 00:48:05 CDT 2014


Revision: 4845
Author:   jmfelderhoff at gmx.eu
Date:     Wed Jun 25 05:47:38 2014 UTC
Log:      Translation: Set up replication

http://code.google.com/p/svnbook/source/detail?r=4845

Modified:
  /branches/1.7/de/book/ch06-server-configuration.xml

=======================================
--- /branches/1.7/de/book/ch06-server-configuration.xml	Tue Jun 17 18:03:01  
2014 UTC
+++ /branches/1.7/de/book/ch06-server-configuration.xml	Wed Jun 25 05:47:38  
2014 UTC
@@ -5944,28 +5944,15 @@
              werden, sondern normale Übergaben von der IP-Adresse des
              Masters (und nur von dort) angenommen werden:</para>

-<!--
            <informalexample>
              <programlisting>
  <Location /svn-proxy-sync>
    DAV svn
    SVNPath /var/svn/repos
    Order deny,allow
-  Deny from all
+  Deny from all <!--
    # Only let the server's IP address access this Location:
-  Allow from 10.20.30.40
-  …
-</Location>
-</programlisting>
-          </informalexample>
  -->
-          <informalexample>
-            <programlisting>
-<Location /svn-proxy-sync>
-  DAV svn
-  SVNPath /var/svn/repos
-  Order deny,allow
-  Deny from all
    # Nur Zugriffe auf diese Location von der IP-Adresse des Servers  
erlauben:
    Allow from 10.20.30.40
    …
@@ -5985,21 +5972,19 @@
            <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>Nachdem Sie nun Ihre
              <literal>Location</literal>-Blöcke auf Mastern und Slaves
              konfiguriert haben, müssen Sie nun Ihren Master für die
-            Replizierung zu den Slaves einrichten. Das geschieht auf
-            die übliche Weise – mit <command>svnsync</command>.
-            Wenn Sie dieses Werkzeug noch nicht kennen, können Sie
-            Details unter
-            <xref linkend="svn.reposadmin.maint.replication"/>
-            nachlesen.</para>
+            Replizierung zu den Slaves einrichten. Unser
+            Anwendungsbeispiel verwendet <command>svnsync</command>,
+            welches detailliert in
+            <xref linkend="svn.reposadmin.maint.replication.svnsync"/>
+            behandelt wird.</para>

  <!--
            <para>First, make sure that each slave repository has a
@@ -6022,77 +6007,71 @@
              Master-Projektarchiv auf der lokalen Platte
              empfangen:</para>

-<!--
            <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
+-->
+Eigenschaften für Revision 0 kopiert.
+$ 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
+-->
+Eigenschaften für Revision 0 kopiert.
+$ svnsync init http://slave3.example.com/svn-proxy-sync \
+               file:///var/svn/repos <!--
  Copied properties for revision 0.
-
+-->
+Eigenschaften für Revision 0 kopiert.
+<!--
  # Perform the initial replication
+-->
+# Die initiale Replizierung durchführe

-$ svnsync sync http://slave1.example.com/svn-proxy-sync
+$ svnsync sync http://slave1.example.com/svn-proxy-sync \
+$ svnsync sync http://slave1.example.com/svn-proxy-sync <!--
  Transmitting file data ....
  Committed revision 1.
  Copied properties for revision 1.
  Transmitting file data .......
  Committed revision 2.
  Copied properties for revision 2.
+-->
+Übertrage Daten ....
+Revision 1 übertragen.
+Eigenschaften für Revision 1 kopiert.
+Übertrage Daten ....
+Revision 2 übertragen.
+Eigenschaften für Revision 2 kopiert.
  …

-$ 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.
  Transmitting file data .......
  Committed revision 2.
  Copied properties for revision 2.
+-->
+Übertrage Daten ....
+Revision 1 übertragen.
+Eigenschaften für Revision 1 kopiert.
+Übertrage Daten ....
+Revision 2 übertragen.
+Eigenschaften für Revision 2 kopiert.
  …

-$ 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.
  Transmitting file data .......
  Committed revision 2.
  Copied properties for revision 2.
-…
-</screen>
-          </informalexample>
  -->
-          <informalexample>
-            <screen>
-$ svnsync init http://slave1.example.com/svn-proxy-sync  
file:///var/svn/repos
-Eigenschaften für Revision 0 kopiert.
-$ svnsync init http://slave2.example.com/svn-proxy-sync  
file:///var/svn/repos
-Eigenschaften für Revision 0 kopiert.
-$ svnsync init http://slave3.example.com/svn-proxy-sync  
file:///var/svn/repos
-Eigenschaften für Revision 0 kopiert.
-
-# Die initiale Replizierung durchführe
-
-$ svnsync sync http://slave1.example.com/svn-proxy-sync
-Übertrage Daten ....
-Revision 1 übertragen.
-Eigenschaften für Revision 1 kopiert.
-Übertrage Daten ....
-Revision 2 übertragen.
-Eigenschaften für Revision 2 kopiert.
-…
-
-$ svnsync sync http://slave2.example.com/svn-proxy-sync
-Übertrage Daten ....
-Revision 1 übertragen.
-Eigenschaften für Revision 1 kopiert.
-Übertrage Daten ....
-Revision 2 übertragen.
-Eigenschaften für Revision 2 kopiert.
-…
-
-$ svnsync sync http://slave3.example.com/svn-proxy-sync
  Übertrage Daten ....
  Revision 1 übertragen.
  Eigenschaften für Revision 1 kopiert.
@@ -6114,26 +6093,19 @@
              <command>svnsync</command> auf jedem Slave-Server
              aufgerufen wird:</para>

-<!--
            <informalexample>
              <programlisting>
-#!/bin/sh
+#!/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 &
-</programlisting>
-          </informalexample>
  -->
-          <informalexample>
-            <programlisting>
-#!/bin/sh
  # Post-Commit-Skript zum Replizieren der neu übergebenen Revision an die  
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>

@@ -6159,28 +6131,23 @@
              Protokollnachricht verändert, die Slave-Server diese
              Änderung ebenfalls mitbekommen:</para>

-<!--
            <informalexample>
              <programlisting>
-#!/bin/sh
+#!/bin/sh <!--
  # 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 &
-</programlisting>
-          </informalexample>
  -->
-          <informalexample>
-            <programlisting>
-#!/bin/sh
  # Post-revprop-Change-Skript zur Weitergabe der Änderung an den  
Revisionseigenschaften an die 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