无需 svnadmin dump/load 即可移动 SVN 存储库
我有一个巨大的服务器 Subversion 存储库,我应该将其移动到外部安装的分区。当然,可以制作 svnadmin
load
/ dump
或 svnadmin hotcopy
,但在我的情况下可能需要由于存储库的大小,需要很多时间。
我可以避免这个阶段,只是将整个文件夹移动到新分区而不破坏与系统位置的任何内部关系吗?
我想做类似的事情:
mv /path/repository /other_path/repository
我喜欢本地客户端存储库的这种可能性,如果也可以使用服务器存储库完成此类操作,它将有很大帮助。
I have a huge server Subversion repository which I should move to an external mounted partition. Of course there are possibility to make svnadmin
load
/ dump
or svnadmin hotcopy
, but in my situation it could take a lot of time, because of the size of the repository.
Could I avoid this stage and just to move the whole folder to new partition without to break any internal relations to the system location ?
I would like to do something like :
mv /path/repository /other_path/repository
I like this possibility with local client's repository, and it will help a lot, if such operation could be done with server repository also.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
是的,如果您确保在移动存储库时没有人访问存储库,则可以移动它。
请记住:这可能会使现有工作副本无效,用户可能需要执行
svn switch --relocate
以便其工作副本指向新位置。Yes, you can move it if you make sure that nobody accesses the repository while you're moving it.
Keep in mind: this might render existing working copies invalid, users might need to do a
svn switch --relocate
so that their working copies point to the new location.理论上是的,与 SVN 存储库相关的所有内容都包含在隐藏的
.svn
文件夹中。In theory yes, everything related to your SVN repository is contained within the hidden
.svn
folders.