Backup and Restore SVN Subversion Repository
March 11th, 2008
5 comments
Assuming /svn is a symlink to /home/username/repos or any other dir you created your repository:
Issue the following command:
# svnadmin dump /svn/myProj1 > /home/username/myProj1Bak
To restore the repository to a different machine or a different repository, create the new repository by issuing the following command:
# svnadmin create /home/username/repos/myProj1
To restore the data, enter this command:
# svnadmin load /home/username/repos/myProj1 < /home/username/myProj1Bak
For more information see the free svn book about the topic here.