如何将一个 SVN 存储库迁移到另一个 SVN 存储库? [英] How do I migrate an SVN repository to another SVN repository?

查看:30
本文介绍了如何将一个 SVN 存储库迁移到另一个 SVN 存储库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有一种简单的方法可以将目录从一个存储库复制到另一个存储库并复制所有历史记录?

Is there a simple way to copy a directory from one repository into another repository with copying all of the history?

推荐答案

最简单的方法是使用:

svnadmin dump path/to/repos > repos.out

这将在文件 repos.out 中为您的存储库(带有历史记录)创建可移植格式.然后你可以使用

This will create a portable format for your repository (with history) in the file repos.out. You can then use

svnadmin load path/to/newrepos < repos.out

将转储"存储库加载到新的或现有的存储库.

to load your 'dumped' repository to the new or existing one.

第 5 章存储库Maintenance -> Migrating Repository Data Elsewhere 有这个关于使用 svnadmin dump 1.7 版的注释:

Chapter 5. Repository Maintenance -> Migrating Repository Data Elsewhere has this note about using svnadmin dump as of version 1.7:

Subversion 存储库转储格式描述了版本化存储库变化而已.它不会携带任何关于未提交的信息事务、用户锁定文件系统路径、存储库或服务器配置自定义(包括钩子脚本)等.

The Subversion repository dump format describes versioned repository changes only. It will not carry any information about uncommitted transactions, user locks on filesystem paths, repository or server configuration customizations (including hook scripts), and so on.

这篇关于如何将一个 SVN 存储库迁移到另一个 SVN 存储库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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