You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by hajhouse <ha...@houseag.com> on 2007/03/16 19:22:54 UTC
Reconstructing a repository from revs/* files
It is possible to reconstruct a repository from the files in db/revs/
alone? As far as I can tell all the files for all the revisions are
present, but filesystem corruption destroyed all the other pieces of the
database (fsfs format).
I have already the obvious (to me) method of creating a new empty fsfs
repository, deleting the current file, and copying the revs/* files to
the repository that I wish to reconstruct into the appropriate place,
then running svnadmin recover. The svnadmin recover command returns
success but the repository afterwards does not work:
$ svn co file:///home/hajhouse/recover/REPO/
svn: No such revision 891
This is subversion 1.5. Any ideas would be appreciated!
--
Henry House
+1 530 753 3361 ext. 13
Please don't send me HTML mail! My mail system frequently rejects it.
The unintelligible text that may follow is a digital signature.
See <http://hajhouse.org/pgp> to find out how to use it.
My OpenPGP key: <http://hajhouse.org/hajhouse.asc>.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Reconstructing a repository from revs/* files --- success
Posted by hajhouse <ha...@houseag.com>.
På 2007-03-16, skrev Ryan Schmidt:
> On Mar 16, 2007, at 14:22, hajhouse wrote:
>
> >It is possible to reconstruct a repository from the files in db/revs/
> >alone? As far as I can tell all the files for all the revisions are
> >present, but filesystem corruption destroyed all the other pieces
> >of the
> >database (fsfs format).
>
> You'd almost certainly also need the contents of db/revprops/, one
> file per revision, just like db/revs/.
The recovery was sucessful! I managed to locate all 891 db/revprops
files and reinsert them in the correct order into place. The repository
appeared to work fine after that, but I have dumped and re-loaded it
just in case there are any obscure problems caused by reconstructing a
database by hand.
--
Henry House
+1 530 753 3361 ext. 13
Please don't send me HTML mail! My mail system frequently rejects it.
The unintelligible text that may follow is a digital signature.
See <http://hajhouse.org/pgp> to find out how to use it.
My OpenPGP key: <http://hajhouse.org/hajhouse.asc>.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Reconstructing a repository from revs/* files
Posted by hajhouse <ha...@houseag.com>.
På 2007-03-16, skrev Ryan Schmidt:
> On Mar 16, 2007, at 14:22, hajhouse wrote:
>
> >It is possible to reconstruct a repository from the files in db/revs/
> >alone? As far as I can tell all the files for all the revisions are
> >present, but filesystem corruption destroyed all the other pieces
> >of the
> >database (fsfs format).
>
> You'd almost certainly also need the contents of db/revprops/, one
> file per revision, just like db/revs/.
Aha, that must be the missing piece. I will likely have to reconstruct
most of those files from scratch; I do however have some of them
(without filenames --- pity that there is no indication of the
applicable revision number in the file itself).
[...]
> Subversion 1.5 has not been released yet. Do you need a feature
> that's being developed in Subversion 1.5, or could you be using the
> most recently released version, 1.4.3?
I'm trying to do the recovery with a subversion binary that I've
compiled from the development source tree because my understanding is
that there is an algorithm to recover the current file in the prerelease
subversion 1.5 (that is not in 1.4.3). The repository was created with
svn 1.3.
--
Henry House
+1 530 753 3361 ext. 13
Please don't send me HTML mail! My mail system frequently rejects it.
The unintelligible text that may follow is a digital signature.
See <http://hajhouse.org/pgp> to find out how to use it.
My OpenPGP key: <http://hajhouse.org/hajhouse.asc>.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Reconstructing a repository from revs/* files
Posted by Ryan Schmidt <su...@ryandesign.com>.
On Mar 16, 2007, at 14:22, hajhouse wrote:
> It is possible to reconstruct a repository from the files in db/revs/
> alone? As far as I can tell all the files for all the revisions are
> present, but filesystem corruption destroyed all the other pieces
> of the
> database (fsfs format).
You'd almost certainly also need the contents of db/revprops/, one
file per revision, just like db/revs/.
> I have already the obvious (to me) method of creating a new empty fsfs
> repository, deleting the current file, and copying the revs/* files to
> the repository that I wish to reconstruct into the appropriate place,
> then running svnadmin recover. The svnadmin recover command returns
> success but the repository afterwards does not work:
>
> $ svn co file:///home/hajhouse/recover/REPO/
> svn: No such revision 891
>
> This is subversion 1.5. Any ideas would be appreciated!
Subversion 1.5 has not been released yet. Do you need a feature
that's being developed in Subversion 1.5, or could you be using the
most recently released version, 1.4.3?
--
To reply to the mailing list, please use your mailer's Reply To All
function
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org