svn 更換 repo 的 location - Linux

Table of Contents

: 我其實只是要換一台 svn server
: 但是希望保留 revision history
: 如果有除了 svn switch 以外的方法也請賜教


The easiest way is to copy your old repository from server A to B.

$ scp -pr A.net:/home/user/repo B.net:/home/user/repo

Then checkout a new sandbox from server B.

This method will fail if someone modifies the repository (checkin) when scp
is ongoing. In this case, you can stop the svnserve daemon on server A and
re-run scp again.


A more advanced way is to use 'svnadmin dump' on server A and 'svnadmin load'
on server B. This method is bullet-proof and is preferred in the enterprise
environment.

--

All Comments