本文介绍了如何从 svn hotcopy 备份中恢复的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们当前的备份过程是每晚执行一次 SVN HOTCOPY,到另一台机器上的备份位置.我能否以某种方式从该备份中恢复并保留所有修订历史?还是我需要使用 svn 转储/加载?

Our current backup process is doing a SVN HOTCOPY every night, to a backup location on a different machine.Can I somehow recover from that backup and retain all revision history?Or do I need to use the svn dump/load?

谢谢,钱德拉吉特

推荐答案

"svnadmin hotcopy" 实际上将整个存储库复制到另一个位置.副本与原始存储库无法区分,实际上可以用作存储库本身.因此,您应该能够将 svnadmin hotcopy 的结果复制回您的存储库位置,并拥有一个完全有效且已恢复的存储库.

"svnadmin hotcopy" actually copies the entire repository to another location. The copy is indistinguishable from the original repository, and can in fact be used as a repository itself. So, you should be able to copy the results of svnadmin hotcopy back to your repository location and have a perfectly valid, restored repository.

热拷贝相对于常规文件系统拷贝的优势在于它尊重 Subversion 的锁定机制.

The advantage of hotcopy over a regular filesystem copy is that it respects Subversion's locking mechanism.

这篇关于如何从 svn hotcopy 备份中恢复的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

05-18 05:50