[svnbook] r5622 committed - branches/1.8/zh/book/ch05-repository-admin.xml
wuzhouhui at users.sourceforge.net
wuzhouhui at users.sourceforge.net
Thu Feb 1 05:52:56 CST 2018
Revision: 5622
http://sourceforge.net/p/svnbook/source/5622
Author: wuzhouhui
Date: 2018-02-01 11:52:55 +0000 (Thu, 01 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-01-31 12:24:12 UTC (rev 5621)
+++ branches/1.8/zh/book/ch05-repository-admin.xml 2018-02-01 11:52:55 UTC (rev 5622)
@@ -2734,8 +2734,12 @@
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<sect3 id="svn.reposadmin.maint.migrate.svnadmin">
+ <!--
<title>Repository data migration using svnadmin</title>
+ -->
+ <title>使用 svnadmin 迁移仓库数据</title>
+ <!--
<para>Whatever your reason for migrating repository history,
using the <command>svnadmin dump</command> and
<command>svnadmin load</command> subcommands is
@@ -2747,6 +2751,13 @@
allows you to redirect the output stream to a file while
watching the status output in your terminal window. For
example:</para>
+ -->
+ <para>无论迁移仓库历史是出于什么样的原因, <command>svnadmin
+ dump</command> 和 <command>svnadmin load</command> 的用法都非常
+ 简单直接. <command>svnadmin dump</command> 按照 Subversion 的文件
+ 系统转储格式, 输出一段范围内的版本号. 转储的结果会被打印到标准输出,
+ 而提示性的信息则会打印到标准错误, 这就允许管理员把输出重定向到文件
+ 的同时, 在终端窗口中查看命令的状态输出, 例如:</para>
<informalexample>
<screen>
@@ -2762,6 +2773,7 @@
</screen>
</informalexample>
+ <!--
<para>At the end of the process, you will have a single file
(<filename>dumpfile</filename> in the previous example) that
contains all the data stored in your repository in the
@@ -2770,7 +2782,15 @@
just like any other <quote>reader</quote> process would
(e.g., <command>svn checkout</command>), so it's safe
to run this command at any time.</para>
+ -->
+ <para>命令执行结束时, 你将得到一个文件 (在上面的例子里, 文件名是
+ <filename>dumpfile</filename>), 这个文件包含了在指定的版本号范围
+ 内, 存放在仓库中的所有数据. 因为 <command>svnadmin dump</command>
+ 从仓库中读取版本号的过程和其他 <quote>读者</quote> (例如
+ <command>svn checkout</command>) 的读取仓库的过程是一样的, 所以
+ 可以在任意时刻, 安全地执行 <command>svnadmin dump</command>.</para>
+ <!--
<para>The other subcommand in the pair, <command>svnadmin
load</command>, parses the standard input stream as a
Subversion repository dump file and effectively replays those
@@ -2777,6 +2797,11 @@
dumped revisions into the target repository for that
operation. It also gives informative feedback, this time
using the standard output stream:</para>
+ -->
+ <para>与 <command>svnadmin dump</command> 配对的命令 <command>svnadmin
+ load</command> 从标准输入读取 Subversion 仓库的转储文件, 把文件中
+ 的版本号重放到目标仓库中. 在命令的执行过程中仍然会输出提示性的信息,
+ 不过这次是打印到标准输出:</para>
<informalexample>
<screen>
More information about the svnbook-dev
mailing list