Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

My old svn repo is no longer accessible, the physical server no longer exists. So, I'm going to be making a new one. I still have all the actual data plus newly modified and added files since. I'm wondering if it's possible to just commit all the files to the new repo. Or will I have to remove all the .svn files, and begin anew?

share|improve this question
It would be much easier to help you if you describe what do you mean by "svn repo died". What happened exactly? Don't you have a backup? – bahrep Oct 10 '12 at 12:10
As @bahrep noted, not available does not mean automatically "repo died" - if physical access to repo storage exist in any from, repository may be restored and moved (if needed) into new location – Lazy Badger Oct 10 '12 at 14:02
@bahrep There is no backup, else I wouldn't be making this post. I rephrased the question to further clarify the situation. – Grumpy Oct 11 '12 at 4:22
up vote 1 down vote accepted

When you checkout a subversion repository you don't fetch all the metadata. because Subversion is not distributed as Git for example. So I am afraid you lost your history, revision changes, etc.

So as you guessed you will need to remove the .svn metada and just create a new repo and commit everything again.

share|improve this answer
Sorry, but there are more convenient ways to "restore" the SVN repository and keep revision history. This answer will not help anyone in the future. Apache Subversion's first job is keeping data safe. To do that, the Subversion development community takes data safety and security very seriously. – bahrep Oct 10 '12 at 12:05
@bahrep - "more convenient ways" exist in the assumption that the repo physically exist, which may not reflect the real situation – Lazy Badger Oct 10 '12 at 14:16
I can't read people mind but if he said "My old svn repo died, completely inaccessible" I take for granted that the server is gone and there is no backup. In that case that's the only way how to restore some of data. If there is anyone who can do something better with the local copy let me know. – golja Oct 10 '12 at 22:08

Paraphrase of @bahrep and @golja

If you have only Working Copy and can't get accessin any form* to repository data (high- or low-level) - you lost all your history.

Can't recall Subversion's behavior in this case, but you can at least to try (for "creating new repo" as last resort)

  • Switch your WC to the URL of new empty repository (if name-change happened)
  • Without removing .svn metadata from WC commit data in current state (which may fail, because you have REV N in repo and try to commit to repo with HEAD revision 0)
share|improve this answer

It would be much easier to help you if you describe what do you mean by "svn repo died". What happened exactly? Don't you have a backup? I've never encountered a case when repository is completely inaccessible (unless it is FUBAR).

BTW if the issue is just about connectivity to Subversion server: if you still have access to the machine where your repository is stored you can always move the repository to another server.

share|improve this answer
I did not go further into it as I knew it wouldn't help. The physical svn server that I was using had been canceled without my knowledge (I was not the owner of it). So, the svn server no longer exists, the server contains no data. – Grumpy Oct 11 '12 at 4:14

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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