将 SVN 存储库从一台主机移动到另一台主机的最快、最安全的方法是什么?
我有两个 SVN 存储库,每个存储库大约 1.5 GB,我需要将它们从一台 CentOS 5.4 Linux 机器移动到另一台。它们的修订范围高达三到四千。
我可以简单地 scp -r
他们。我确实尝试过启动这个过程,很明显这需要几个小时,甚至可能整个晚上,所以我停下来重新考虑。
我可以使用带有或不带有 --deltas
选项的 svnadmin dump,然后压缩并 scp 转储文件。
有更好的方法吗?
I have two SVN repositories about 1.5 GB each that I need to move from one CentOS 5.4 Linux machine to another. They are up into the three to four thousand revision range.
I could simply scp -r
them over. I did try starting that process and it was clear that it was going to take several hours, maybe all night, so I stopped it to reconsider.
I could use svnadmin dump
with or without the --deltas
option, then compress and scp the dump file.
Is there some better approach?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
是的,rsync。
具体来说:
Yep rsync.
Specificly:
svnsync
设计用于如果在复制完成之前没有其他任何内容写入目标存储库,那么应该是安全的。然而,rsync 也应该是安全的,并且允许中断(svnsync 也可以,不确定)。
svnsync
is designed for this, and should be safe provided nothing else writes to the target repo until the copy is complete.Hower,
rsync
should also be safe, and allow interruption (svnsync may as well, not sure).