svnadmin

svnadmin is the administrative tool for monitoring and repairing your Subversion repository. For detailed information, see the maintenance section for “svnadmin”一节.

因为svnadmin直接访问版本库(因此只可以在存放版本库的机器上使用),它通过路径访问版本库,而不是URL。

svnadmin选项

--bdb-log-keep

(Berkeley DB-specific.) Disable automatic log removal of database log files. Having these log files around can be convenient if you need to restore from a catastrophic repository failure.

--bdb-txn-nosync

(Berkeley DB-specific.) Disables fsync when committing database transactions. Used with the svnadmin create command to create a Berkeley DB-backed repository with DB_TXN_NOSYNC enabled (which improves speed but has some risks associated with it).

--bypass-hooks

绕过版本库钩子系统。

--clean-logs

Remove unused Berkeley DB logs.

--force-uuid

缺省情况下,当版本库加载已经包含修订版本的数据时svnadmin会忽略流中的UUID,这个选项会导致版本库的UUID设置为流的UUID

--ignore-uuid

缺省情况下,当加载空版本库时,svnadmin会使用来自流中的UUID,这个选项会导致忽略UUID(如果你的配置文件已经设置了--force-uuid,将会用于将其覆盖)。

--incremental

导出一个修订版本针对前一个修订版本的区别,而不是通常的完全结果。

--parent-dir DIR

当加载一个转储文件时,根路径为DIR而不是/

--revision (-r) ARG

指定一个操作的修订版本。

--quiet

不显示通常的过程—只显示错误。

--use-post-commit-hook

当导入使用一个转储文件时,在每次新的修订版本产生时运行版本库post-commit钩子。

--use-post-revprop-change-hook

When changing a revision property, run the repository's post-revprop-change hook after changing the revision property.

--use-pre-commit-hook

当加载一个转储文件时,每次新加修订版本之前运行版本库的pre-commit钩子。如果钩子失败,终止提交并中断加载进程。

--use-pre-revprop-change-hook

When changing a revision property, run the repository's pre-revprop-change hook before changing the revision property. If the hook fails, abort the modification and terminate.

svnadmin子命令