My SVN server is dead.
I have another machine I could use as an SVN server and a couple of machines with working copies of the original repository.
Is there a clean way to recreate the repository on a new server, from only a current working copy? (history can be forgotten)
I have attempted creating a new repository, hacking its UUID and checking in the complete directory structure, then switch -relocate’ing the working copies, but this doesn’t work due to checksums and revision numbers not matching.
Any help would be really appreciated!
You have no backups whatsoever?
If that’s the case, then the simplest approach will be to create a new repository, import the contents of one working directory into it, and then have everyone else check out clean from the new repository. Trying to hack the existing working directories will be more trouble than it’s worth.
You’ll want to make sure that the “master” working directory is clean: do an
svn reverton it, then remove all.svndirectories — note that there’s one at every level of the tree (definitely make a copy before doing this this).If you want to preserve changes in other working directories, then you can remove the
.svndirectories from them and use a tool likecpioto copy the files into the new working directories.