Install SVN

How to install and configure SVN for Apache

Create new Respository

svnadmin create --fs-type fsfs /mnt/svn/svnrepository
chown -R www-data. /mnt/svn/svnrepository

Configure Apache

Enable the SVN apache module: a2enmod dav_svn and make sure that HTTPS is working correctly.

          DAV svn
          SVNPath /mnt/svn/svnrepository
          AuthType Basic
          AuthName "SVN Repository"
          AuthUserFile /etc/apache2/dav_svn.passwd
          Require valid-user
          SSLRequireSSL

Move project from one repository to another

svnadmin dump /svn/oldrepository > old.dump
svndumpfilter include path/to/project --drop-empty-revs --renumber-revs --preserve-revprops < old.dump > project.dump
svnadmin load /svn/newrepository < project.dump