[英]Repository content (files/directories) not showing at new location on svn dump and load
I want to move my repo to new server. 我想将我的仓库移至新服务器。 My repo contains multiple files.
我的仓库包含多个文件。 To move I have created a repository dump file with command
要移动,我已经使用命令创建了一个存储库转储文件
$svnadmin dump file:///repo/path > file.dump
copied dump file to new server and loaded the dump file in new repository with command 将转储文件复制到新服务器,并使用以下命令将转储文件加载到新存储库中
$svnadmin load file:///new/repo/path < file.dump
It successfully loaded the file with log 它成功加载了带有日志的文件
<<< Started new transaction, based on original revision 1
------- Committed new rev 1 (loaded from original rev 1) >>>
I am not able to see files and folders which I have loaded from dump file at new repository location. 我在新存储库位置看不到从转储文件加载的文件和文件夹。 Please help if I am missing anything.
如果我有任何遗漏,请提供帮助。
First and foremost, the commands you've specified should not work. 首先,您指定的命令不起作用。 You have to specify full local path to repository and not use
file://
access. 您必须指定存储库的完整本地路径,而不能使用
file://
访问。 svnadmin
is an admin tool that requires local and full access the repository and it does not accept URLs. svnadmin
是一个管理工具,需要本地和完全访问存储库,并且不接受URL。
The commands should be 命令应该是
svnadmin dump /path/to/repository > file.dump
svnadmin load /path/to/new/repository < file.dump
After loading the dump, use Subversion client and run svn log
to check the revision history in the new repository. 加载转储后,使用Subversion客户端并运行
svn log
检查新存储库中的修订历史记录。
With svn log
, you must enter URL to the repository. 使用
svn log
,必须输入存储库的URL。 In case you plan to check the log locally, specify file://path/to/new/repository
. 如果您打算在本地检查日志,请指定
file://path/to/new/repository
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.