svnadmin load — Read a repository dump stream from stdin
.
Read a repository dump stream from stdin
, committing
new revisions into the repository's filesystem. Send progress feedback to
stdout
.
--force-uuid --ignore-uuid --parent-dir --quiet (-q) --use-post-commit-hook --use-pre-commit-hook
这里显示了加载一个备份文件到版本库(当然,使用svnadmin dump):
$ svnadmin load /var/svn/restored < repos-backup <<< Started new txn, based on original revision 1 * adding path : test ... done. * adding path : test/a ... done. …
或者你希望加载到一个子目录:
$ svnadmin load --parent-dir new/subdir/for/project \ /var/svn/restored < repos-backup <<< Started new txn, based on original revision 1 * adding path : test ... done. * adding path : test/a ... done. …