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.
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.
Same problem. Help me too.
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?
I automated the process of backing up multiple repositories on a linux server. Get the script: http://www.hildoersystems.com/index.php?option=com_content&view=article&id=122:backup-a-subversion-svn-repository-with-this-free-script&catid=52:system-administration&Itemid=74
-Anthony
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