Sunday, November 18, 2007

Backup and Restore SVN Repository

Issue the following command:

svnadmin dump /var/repo/myRepo > /home/username/myRepoBackup

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/repo

To restore the data, enter this command:

svnadmin load /home/username/repo < /home/username/myRepoBackup

For more information see the free svn book about the topic here.

No comments: