Migrating svn to new server help

kyreservoirdog
kyreservoirdog
Hello. I've searched a bunch on this but can't find a solution. I'm hoping someone on this forum can help me.   When I was shutting down a hosted account a few years back, I had a svn repo. In a rush, instead of doing a dump, I copied the entire folder structure (e.g., "db" folder, etc) on the server. I'm now trying to set the repo back up on a new server. I have seen forum posts where others have successfully migrated their repo using the server side folder structure.   Here' the problem. The fs-type of the old repo is "sfs", not "fsfs" nor "bdb". I don't know why this is. When trying to migrate this repo by following the instructions of others that were successful with migrating a repo in this way, I can get to the repo with TortoiseSVN, but I get an error "unknown fs type sfs". I tried changing the fs-type to fsfs, bdb. I tried to do a dump, but I always get an error.   Any suggestions on how to proceed?

Last updated

DougR
DougR
First, I assume that you have placed the repository back on the same OS architecture that you took it off of? For instance if you copied it from a Windows server you need to put it back on a Windows server (not a Linux server, etc.).  I know of no other file systems than "fsfs" or "bdb". If someone hacked the "fsfs" into something else then you may be in an unfortunate situation (since changing the "fs-type" contents to "fsfs" didn't work).  What db version is this? Please provide the contents of both the "/format" and "/db/format" files?
kyreservoirdog
kyreservoirdog
DougR...thank your for your replies and help.    I figured it out. It did not seem to be dependent on the server os. The old db was pre-1.5 since it had the /dav folder.   Steps to fix:  1) created a fresh repo on the new server with svn 1.7.14 2) deleted /db folder 3) copied over old /db folder 4) deleted /format file from fresh repo 5) copied /format file from old repo 6) changed /db/fs-type file from sfs to fsfs 7) Error about uuid file was occurring while trying to browse fresh repo with TortoiseSVN 8) found db/uuid file was empty. Copied over new uuid file from a dummy repo. 9) dont't know why, but had to remove existing user from fresh repo using vi 10) added new user using htpasswd  11) cleared tortoisesvn 's password cache 12 now able to browse and checkout from repo with tortoisesvn  13) deleted dummy repo   --Regards
DougR
DougR
Excellent! And thank you for posting how you fixed it. Hopefully someone else can use that same formula! Cheers!
nadine25
nadine25
Thank for tip!

1-5 of 5

Reply to this discussion

You cannot edit posts or make replies: You should be logged in before you can post.