制作 svn 存储库的独立副本 [英] making an independent copy of svn repository

查看:33
本文介绍了制作 svn 存储库的独立副本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试克隆一个存储库,但它应该是彼此独立的副本.这背后有什么魔法吗,或者只是使用 svn 客户端并克隆它?

I am trying to make a clone of a repository but it should be independent copy of each other. Is there any magic behind this or just use a svn client and make a clone of it?

谢谢

推荐答案

尝试 svnadmin hotcopy.您可以在 中查找svn book (Version Control with Subversion) 的 repo 维护部分,特别是 "存储库复制".还有 svnsync 命令,但只有在尝试创建镜像时才需要它.

Try svnadmin hotcopy. You can look it up in the repo maintenance section of the svn book (Version Control with Subversion), specifically in the section "repository replication". There is also the svnsync command, but you only need this if you're trying to create a mirror.

引用这本书:简单地进行递归目录复制会带来生成错误备份的风险.在 Berkeley DB 的情况下,文档描述了可以复制数据库文件的特定顺序,以保证有效备份复制.FSFS 数据存在类似的顺序."FSFS 和 Berkeley DB 是正常 subversion 安装提供的两个数据库选项,FSFS 是默认选项.

To quote the book: "simply doing a recursive directory copy runs the risk of generating a faulty backup. In the case of Berkeley DB, the documentation describes a certain order in which database files can be copied that will guarantee a valid backup copy. A similar ordering exists for FSFS data." FSFS and Berkeley DB are the two database options that normal subversion installations provide, and FSFS is the default.

示例用法(再次来自书中):

Example usage (again from book):

$ svnadmin hotcopy /var/svn/repos /var/svn/repos-backup

这篇关于制作 svn 存储库的独立副本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆