6

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?

2
  • Have you read the book?
    – Turbo J
    May 14, 2011 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, 2011 at 13:52

1 Answer 1

2

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
1
  • 1
    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, 2011 at 4:53

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .