How to migrate a subversion repository to Dreamhost
Posted by Kelvin on 23 Jun 2010 at 08:27 pm | Tagged as: programming
I recently decided to host a subversion repository that was located on another server to Dreamhost. Here are the steps:
1. LOCAL STEP: Create your Dreamhost svn repository via CPanel.
2. LOCAL STEP: Verify that your new svn repository has been created.
cd /tmp svn co http://svn.mydreamhostserver.com/project
3. REMOTE STEP: SSH into your dreamhost account and remote copy your external subversion repo to a temp folder in your Dreamhost home directory.
ssh mydreamhostserver.com mkdir tmp cd tmp rsync -avz myserver:/var/svn/repo/project .
4. REMOTE STEP:With your open ssh account,
cd ~/svn mv project project-dh cp -fr ~/tmp/project .
5. LOCAL STEP:Verify that it succeeded.
cd /tmp/project svn up
Should work like a charm!