Results 1 to 5 of 5

Thread: How to rescue SVN repo from dead server

  1. #1
    Join Date
    Oct 2006
    Beans
    69

    How to rescue SVN repo from dead server

    Hi,
    I'm trying to figure out if there is a way to rescue the data from an old svn repo. my old server's motherboard went away and the drives will not boot with a new motherboard. the other problem is that I've had this shelved for a while and unfortunately i didn't write down any of the passwords. either way I can mount the drives and browse the file system using puppy Linux but I can't seem to find where svn hid my actual files. I don't really care about preserving the repo structure. mostly I just want to make sure that there isn't anything I don't have backups of on there before I wipe the drives and use them for my next attempt at a home server. any help would be appreciated.

  2. #2
    Join Date
    Apr 2007
    Beans
    80

    Re: How to rescue SVN repo from dead server

    You won't see your actual files (ie, if sample.txt is in the repo, you won't see sample.txt in the server's filesystem).

    In the past, I've copied the entire repository path from the old server, say /home/svn/repo. Then on the new server, create a new repository by the same name, which will create default files in the repo path. Finally, overwrite the default files in the new repo with your old repo, and you'll be able to access your repository just like it was.
    MSI K8N Master2-FAR | Dual Opteron 285 2.6GHz | 6 GB PC3200 | eVGA 8800GT | Ubuntu 9.04 64-bit
    Intel BOXD945GCLF2 | Atom 330 | 2 GB PC-5300 | 1.5 TB | Ubuntu 8.04.3
    Gateway MX6030 | Celeron-M 1.4GHz | 1GB PC3200 | Ubuntu 9.04

  3. #3
    Join Date
    Oct 2006
    Beans
    69

    Re: How to rescue SVN repo from dead server

    problem is I don't remember my password/username for that server and the SVN repo on it. Is there any way of getting the data back without login info? all I have left of the old server is a drive immage at this point.

  4. #4

    Re: How to rescue SVN repo from dead server

    Mount the drive on a live cd or linux install on a second computer and copy the root directory of the repository to the new servers SVN repo location. Assuming the drive wasent encripted doing this will bipass the need for login info. Idealy you should periodically svnadmin dump the repository as the on-disk format sometimes changes, which can leave repos un useable if you use a newer version of SVN.
    Last edited by hessiess; September 4th, 2009 at 04:41 PM.
    im dyslexic, please don't comment on my spelling
    blender 3d artist, visit my portfolio
    Quad-Ren, Open source, resolution independent 2D graphics engine
    Screen space is a precious resource, don't waste it

  5. #5
    Join Date
    Sep 2005
    Beans
    266

    Re: How to rescue SVN repo from dead server

    Quote Originally Posted by shizakapayou View Post
    You won't see your actual files (ie, if sample.txt is in the repo, you won't see sample.txt in the server's filesystem).

    In the past, I've copied the entire repository path from the old server, say /home/svn/repo. Then on the new server, create a new repository by the same name, which will create default files in the repo path. Finally, overwrite the default files in the new repo with your old repo, and you'll be able to access your repository just like it was.
    Thanks. That worked great.

    $ svnadmin create /var/svn/repos/treasure
    $ cp -r treasure/* /var/svn/repos/treasure

    and then

    $ svn list file:///var/svn/repos/treasure

    And there it all was back again.

    Thank you very much.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •