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
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
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
On Mon, Mar 19, 2012 at 3:59 AM, Alin ILIE alin.i...@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.