Moving a Subversion Repository

I just had to move my subversion repository from a machine that is dying, and I figured I might as well document this for when the new machine starts to go.

On the original repository box:

sudo svnadmin dump /usr/local/repos > repos.dump

I moved the file to the new repository box, and did the following:

sudo svnadmin create /usr/local/repos
sudo svnadmin load /usr/local/repos < repos.dump
sudo groupadd svn
sudo usermod -a -G svn eric
sudo chgrp -R svn /usr/local/repos
sudo chmod -R g+w /usr/local/repos