You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Alin ILIE <al...@matrixrom.ro> on 2012/03/18 14:49:09 UTC

Restore SVN server from files

Hello everyone,

I had a RAID 5 storage, and I used to have a SVN server on this. 
Unfortunately the RAID layout failed. I succeeded to the data from my 
server including the folder where I created the SVN repositories.
Now that I have the files from repositories, what is the correct plan 
for re-installing the SVN server in a different location?

Thank you,
Alin ILIE


Re: Restore SVN server from files

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Mar 19, 2012, at 02:59, Alin ILIE wrote:

> I have to run svn relocate or svn switch --relocate according to the version that I will have on the new server.

Actually, according to the version of the svn client you run on each machine accessing the repository.



Re: Restore SVN server from files

Posted by Nico Kadel-Garcia <nk...@gmail.com>.
On Mon, Mar 19, 2012 at 3:59 AM, Alin ILIE <al...@yellowgnu.net> wrote:

> The backup transfer to a different machine did not worked, and I didn't
> notice this. :(
>
> Got it !
> 1) Install SVN on a new linux server
> 2) Configure SVN
> 3) Place the files recovered in the place where I defined repositories
> home in the step 2
> 4) If I will change the server URL, I have to run svn relocate or svn
> switch --relocate according to the version that I will have on the new
> server.
>
> MANY THANKS,
> Alin
>
And just as with a backup, you'll need to restore the *access control* you
had before, which is usually not stored within the SVN
directories themselves.  SSH public keys for svn+ssh, daemon configurations
for svnserve, Apache configs for HTTPS, and file ownership would need to be
set up. These are the same factors that need to be preserved, usually out
of band, for a backup or remote svnsync based mirror.

Re: Restore SVN server from files

Posted by Alin ILIE <al...@yellowgnu.net>.
The backup transfer to a different machine did not worked, and I didn't 
notice this. :(

Got it !
1) Install SVN on a new linux server
2) Configure SVN
3) Place the files recovered in the place where I defined repositories 
home in the step 2
4) If I will change the server URL, I have to run svn relocate or svn 
switch --relocate according to the version that I will have on the new 
server.

MANY THANKS,
Alin


On 3/19/2012 9:43 AM, Ulrich Eckhardt wrote:
> Am 18.03.2012 14:49, schrieb Alin ILIE:
>> I had a RAID 5 storage, and I used to have a SVN server on this.
>> Unfortunately the RAID layout failed. I succeeded to the data from my
>> server including the folder where I created the SVN repositories.
>> Now that I have the files from repositories, what is the correct plan
>> for re-installing the SVN server in a different location?
>
> Note up front: Backup. SVN will not save you from the possibility of 
> data loss, just as your RAID didn't.
>
> Now, in order to get the repos back online, just install an according 
> server (svnserve or Apache) and configure it so that it can find the 
> repos. Basically, you follow the instructions to set up a server but 
> skip the step where you create the repositories.
>
> If the name of the machine changed or the URL where it serves the 
> repositories, all working copies will have become unusable, you will 
> have to tell them about the changed server URL with "svn relocate" 
> (SVN 1.7) or "svn switch --relocate" (SVN <= 1.6).
>
> Uli
> ************************************************************************************** 
>
> Domino Laser GmbH, Fangdieckstra�e 75a, 22547 Hamburg, Deutschland
> Gesch�ftsf�hrer: Thorsten F�cking, Amtsgericht Hamburg HR B62 932
> ************************************************************************************** 
>
> Visit our website at http://www.dominolaser.com
> ************************************************************************************** 
>
> Diese E-Mail einschlie�lich s�mtlicher Anh�nge ist nur f�r den 
> Adressaten bestimmt und kann vertrauliche Informationen enthalten. 
> Bitte benachrichtigen Sie den Absender umgehend, falls Sie nicht der 
> beabsichtigte Empf�nger sein sollten. Die E-Mail ist in diesem Fall zu 
> l�schen und darf weder gelesen, weitergeleitet, ver�ffentlicht oder 
> anderweitig benutzt werden.
> E-Mails k�nnen durch Dritte gelesen werden und Viren sowie 
> nichtautorisierte �nderungen enthalten. Domino Laser GmbH ist f�r 
> diese Folgen nicht verantwortlich.
> ************************************************************************************** 
>
>


Re: Restore SVN server from files

Posted by Ulrich Eckhardt <ul...@dominolaser.com>.
Am 18.03.2012 14:49, schrieb Alin ILIE:
> I had a RAID 5 storage, and I used to have a SVN server on this.
> Unfortunately the RAID layout failed. I succeeded to the data from my
> server including the folder where I created the SVN repositories.
> Now that I have the files from repositories, what is the correct plan
> for re-installing the SVN server in a different location?

Note up front: Backup. SVN will not save you from the possibility of 
data loss, just as your RAID didn't.

Now, in order to get the repos back online, just install an according 
server (svnserve or Apache) and configure it so that it can find the 
repos. Basically, you follow the instructions to set up a server but 
skip the step where you create the repositories.

If the name of the machine changed or the URL where it serves the 
repositories, all working copies will have become unusable, you will 
have to tell them about the changed server URL with "svn relocate" (SVN 
1.7) or "svn switch --relocate" (SVN <= 1.6).

Uli
**************************************************************************************
Domino Laser GmbH, Fangdieckstra�e 75a, 22547 Hamburg, Deutschland
Gesch�ftsf�hrer: Thorsten F�cking, Amtsgericht Hamburg HR B62 932
**************************************************************************************
Visit our website at http://www.dominolaser.com
**************************************************************************************
Diese E-Mail einschlie�lich s�mtlicher Anh�nge ist nur f�r den Adressaten bestimmt und kann vertrauliche Informationen enthalten. Bitte benachrichtigen Sie den Absender umgehend, falls Sie nicht der beabsichtigte Empf�nger sein sollten. Die E-Mail ist in diesem Fall zu l�schen und darf weder gelesen, weitergeleitet, ver�ffentlicht oder anderweitig benutzt werden.
E-Mails k�nnen durch Dritte gelesen werden und Viren sowie nichtautorisierte �nderungen enthalten. Domino Laser GmbH ist f�r diese Folgen nicht verantwortlich.
**************************************************************************************