无需 svnadmin dump/load 即可移动 SVN 存储库

发布于 2024-12-17 11:04:00 字数 369 浏览 2 评论 0原文

我有一个巨大的服务器 Subversion 存储库,我应该将其移动到外部安装的分区。当然,可以制作 svnadmin load / dumpsvnadmin 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

堇年纸鸢 2024-12-24 11:04:00

是的,如果您确保在移动存储库时没有人访问存储库,则可以移动它。

请记住:这可能会使现有工作副本无效,用户可能需要执行 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.

只怪假的太真实 2024-12-24 11:04:00

理论上是的,与 SVN 存储库相关的所有内容都包含在隐藏的 .svn 文件夹中。

In theory yes, everything related to your SVN repository is contained within the hidden .svn folders.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文