I recently had to send in my computer for repairs, and my hard drive ended up getting replaced. Luckily I had a backup of the files, but no system image.

I'd like to get my SVN repositories back, but I don't have a dump out of SVN, just the repository directories on the hard drive.

Is there a way to rebuild my SVN repositories from just the files on the hard drive without having a dump file? How do I do that?

link|improve this question
Have you read the book? – Turbo J May 14 '11 at 16:36
I have, it mentions using hot-backup or svnadmin dump to backup your repositories. It's already too late for me, I just have the filesystem backup, with no hot-backup or dump file. – jjeaton May 16 '11 at 13:52
feedback

1 Answer

up vote 1 down vote accepted

Do you have a backup or not?

If you have a backup, just put the backuped files for the SVN repositories to the place where they belong. To check them first, just run

svnadmin dump /path/to/backuped/repos >> /dev/null
link|improve this answer
So I created a new blank repository on the new system. Then ran your command svnadmin dump /path/to/backuped/repos >> dump_file then ran an svnadmin load /path/to/backuped/repos < dump_file and it appears that the repositories are back in there. Thanks. – jjeaton May 18 '11 at 4:53
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.