Home > Subversion > Backup and Restore SVN Subversion Repository

Backup and Restore SVN Subversion Repository

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.

  1. velmurugan
    October 24th, 2008 at 15:05 | #1

    Hi,

    my subversion server is down.i have copied to the created repository path backup (subversion repository folder).i installed new machine to subversion software and creating repository is new location and configurtion also completed and it’s work well.but how to restore old repository backup.i am using below the command it’s throwing error.please help me.

    C:\\Users\\Administrator>svn import D:\\Subversion Repository file:///D:/Subversion

    svn: Too many arguments to import command

    C:\\>svnadmin dump D:SubversionRepository D:/Subversion
    svnadmin: Expected FS format \’2\’; found format \’3\’

    C:\\>svnadmin dump D:SubversionRepository > D:/Subversion
    Access is denied.

    C:\\>svnadmin load D:\\SubversionRepository svnadmin load D:\\Subversion < D:\\SubversionRepository
    Access is denied.

    D:\\Subversion Repository is old backup repository path.

    D:/Subversion is newly created repository path.

    please help me.

  2. JJ
    March 31st, 2009 at 00:06 | #2

    Same problem. Help me too.

  3. July 23rd, 2009 at 09:43 | #3

    Thanks for the tip, I restored it and now all the update tracks are there. But the problem is I’m unable to see my directory structure or anything. How can I see that?

  4. December 16th, 2009 at 18:28 | #4
  5. Jaz
    June 4th, 2010 at 16:08 | #5

    Had the same access denied trouble. My problem was a syntax issue.

    Resolved by specifying the exact repository name that I wanted to back up, as well as defining a name and extension for the backup file to be created:

    svnadmin dump f:\repositories\clients > g:\subversion\clients_repository.bak

  1. No trackbacks yet.