How to migrate SVN repository?

本文详细介绍了如何通过几个简单的步骤来迁移Subversion (SVN) 仓库。首先,在当前机器上使用svnadmin dump命令导出仓库,然后通过scp命令将导出文件传输到新的服务器上。最后,在新服务器上创建新的SVN仓库并使用svnadmin load命令加载之前导出的数据。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

http://www.techiecorner.com/175/how-to-migrate-svn-repository/

There are only few easy steps to migrate svn repository. This post is for my own notes, in case i forget how to migrate svn repository again!

Below is the steps to migrate SVN repository:-
Start your terminal
 $ svnadmin dump /path/to/your/repo > yourreporname.dump

$ scp yourreponame.dump username@new.machine.ip:/path/to/your/new/repo 

This steps is to transfer your dump file to your new machine. You will prompt to enter password for the new machine.

Now your SVN dump file should be in new machine
Login to your new machine
cd /path/to/your/new/repo
svnadmin create reponame
svnadmin load reponame < yourreponame.dump

Done, you just just migrated your svn repository
* If you dump file is too big for transfer, you can compress it using tar before sending over thru network.
Tar command for compress:

tar -zcf yourreponame.tgz yourreponame.dump 
Tar command for uncompress:

tar -zxf yourreporname.tgz
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值