[svnbook] r5625 committed - branches/1.8/zh/book/ch05-repository-admin.xml
wuzhouhui at users.sourceforge.net
wuzhouhui at users.sourceforge.net
Mon Feb 5 06:09:26 CST 2018
Revision: 5625
http://sourceforge.net/p/svnbook/source/5625
Author: wuzhouhui
Date: 2018-02-05 12:09:26 +0000 (Mon, 05 Feb 2018)
Log Message:
-----------
1.8/zh: translation of chapter 5 in progress
Modified Paths:
--------------
branches/1.8/zh/book/ch05-repository-admin.xml
Modified: branches/1.8/zh/book/ch05-repository-admin.xml
===================================================================
--- branches/1.8/zh/book/ch05-repository-admin.xml 2018-02-04 03:48:01 UTC (rev 5624)
+++ branches/1.8/zh/book/ch05-repository-admin.xml 2018-02-05 12:09:26 UTC (rev 5625)
@@ -2995,8 +2995,11 @@
</screen>
</informalexample>
+ <!--
<para>These dump files could be loaded into a new repository
with the following command sequence:</para>
+ -->
+ <para>可以用下面的命令序列, 把这几个转储文件加载到新的仓库中:</para>
<informalexample>
<screen>
@@ -3006,8 +3009,9 @@
</screen>
</informalexample>
+ <!--
<para>Another neat trick you can perform with this
- <option>--incremental</option> option involves appending to an
+ <option>- -incremental</option> option involves appending to an
existing dump file a new range of dumped revisions. For
example, you might have a <literal>post-commit</literal> hook
that simply appends the repository dump of the single revision
@@ -3017,10 +3021,18 @@
ran. Used like this, <command>svnadmin dump</command> can be
one way to back up changes to your repository over time in case
of a system crash or some other catastrophic event.</para>
+ -->
+ <para>选项 <option>--incremental</option> 的另一个奇妙用法是向已有的
+ 转储文件添加新的版本号. 比如说, 管理员可能会利用钩子 post-commit,
+ 将每次触发钩子的版本号转储到同一个转储文件中. 又或者是每晚都运行
+ 一个脚本, 把上一次脚本运行结束后, 仓库中新增的版本号转储到同一个
+ 文件中. 利用这种方式, <command>svnadmin dump</command> 就能实现仓库
+ 的备份.</para>
+ <!--
<para>The dump format can also be used to merge the contents of
several different repositories into a single repository. By
- using the <option>--parent-dir</option> option of
+ using the <option>- -parent-dir</option> option of
<command>svnadmin load</command>, you can specify a new
virtual root directory for the load process. That means if
you have dump files for three repositories—say
@@ -3028,6 +3040,14 @@
<filename>cal-dumpfile</filename>, and
<filename>ss-dumpfile</filename>—you can first create a new
repository to hold them all:</para>
+ -->
+ <para>利用转储文件, 还能把不同的几个仓库合并成一个仓库. 为
+ <command>svnadmin load</command> 添加选项
+ <option>--parent-dir</option>, 就能为加载过程指定一个新的虚拟根目录,
+ 这就意味着如果你有三个仓库的转储文件—假设文件名分别是
+ <filename>calc-dumpfile</filename>, <filename>cal-dumpfile</filename>,
+ <filename>ss-dumpfile</filename>—先创建一个将会用来加载所有
+ 转储文件的仓库:</para>
<informalexample>
<screen>
@@ -3036,9 +3056,12 @@
</screen>
</informalexample>
+ <!--
<para>Then, make new directories in the repository that will
encapsulate the contents of each of the three previous
repositories:</para>
+ -->
+ <para>然后, 在仓库中为每一个转储文件创建一个对应的目录:</para>
<informalexample>
<screen>
@@ -3051,8 +3074,11 @@
</screen>
</informalexample>
+ <!--
<para>Lastly, load the individual dump files into their
respective locations in the new repository:</para>
+ -->
+ <para>最后, 把转储文件加载到各自对应的目录内:</para>
<informalexample>
<screen>
More information about the svnbook-dev
mailing list