How to Backup and Restore the Subversion Repository

Share this Article :

In this post, i will show you on how to backup and restore the subversion repository using svnadmin command.

To backup the repository, run below command :

     
    [[email protected] ~]# mkdir /mysvnbackup
    [[email protected] ~]# svnadmin dump /svn/repos/testsvn > /mysvnbackup/testsvn.svndump
    * Dumped revision 0.
    

To restore the repository, run below command :

    [[email protected] ~]# rm -rf /svn/repos/testsvn
    [[email protected] ~]# svnadmin create /svn/repos/newtestsvn
    [[email protected] ~]# chown -R apache:apache /svn/repos/newtestsvn
    [[email protected] ~]# svnadmin load /svn/repos/newtestsvn < /mysvnbackup/testsvn.svndump
    


3 Comments

  1. prasad

Leave a Reply