threads / discuss / 29416

How to restore "svn mirror generator"?

Subject: How to restore "svn mirror generator"?

## tl;dr

One message between Jan 21, 2012 and Jan 21, 2012.

replies: 0people: 1as markdown or json

Manuel Reimer· Jan 21, 2012, 15:45 UTC · lore
Hello,
I want to create a GIT mirror of a SVN repository.

I plan to mirror a SVN server to GIT. I don't want to fetch the full history but all future commits should be mirrored.

I plan to do this in the following way:

git svn clone -r $REVISION_TO_START_WITH http://domain.tld/path/to/svn git remote add origin ssh://user@gitserver.tld/mirror.git git push

Now, from time to time, I want to update with

git svn rebase git push

I hope, so far I'm on the right way.
But what happens if, for some reason, my local repository gets lost?
How to reconnect GIT and SVN so I'm able to mirror, again?

Is the first step to clone the GIT repository and then, somehow, get the SVN connected, again, or do I have to do it the other way around?

Yours
Manuel

← back to recent threads