2012-10-05

How to backup and restore Subversion repository

Backing up and Restoring Your Subversion Repository - OCS Support Wiki: Using the Console

Establish an SSH connection to your designated SVN / Trac server and login with the same username and password you use to obtain access to the SVN / Trac control panel. Once in, run:

svnadmin dump ~/svn/repo_name > repo_name.svn.dump

Replace repo_name with your repository name. This will backup your repository into a file called repo_name.svn.dump. You can then restore a Subversion backup with:

svnadmin load ~/svn/repo_name < repo_name.svn.dump

No comments: