导出本地和远程SVN项目, Export remote SVN repository
在有服务器控制权的情况下, 源服务器上
sudo svnadmin dump ironbank/ > ~/ironbank.svn.dump
在目的服务器上
sudo svnadmin create ironbank sudo svnadmin load ironbank/ < ~/ironbank.svn.dump sudo chown -R apache:apache ironbank/
仅提取repository中某个子项目的情况
tar -zxvf tt_repos.dump.20140916.tar.gz cat tt_repos.dump | svndumpfilter include /market > market.dump cd /var/svn/ sudo svnadmin create tt-ads sudo svnadmin load tt-ads/ < ~/market.dump
Since 1.7, you can now svnrdump, which doesn't require admin rights on the remote repos. Command is easy: svnrdump dump https//remote/svn/trunk > repos.dump. In most cases, the command works with SVN 1.6 as well, but may have some issues, see docs. Works both in *nix and Windows
从版本1.7开始, 可以使用svnrdump来远程导出svn项目了, 命令如下
C:\Users\Rockbb\Downloads>C:\ProgramW7\Apache-Subversion-1.8.13\bin\svnrdump.exe dump http://11.25.33.1:13481/repos/rock/ > rock.dump
如果需要用户登录校验, 则使用 --username someone --password something 参数