Aaaye! Deleted shared repository .bzr directory, any options?

Michael B. Trausch mbt at zest.trausch.us
Wed Apr 29 01:39:57 BST 2009


On Wed, 29 Apr 2009 10:11:29 +1000
Robert Collins <robert.collins at canonical.com> wrote:

> You've deleted the history database :(.

I was afraid of that.

> To start, make a new shared repo where you deleted the old one.
> Then, for every branch you had pushed somewhere, branch the
> public/external copy into a temporary local branch in the shared repo.
> This will bring back in at least some of the data you have expurgated.

Unfortunately, these were all (up to this point) private.  I was
working on them as a whole project, and then was going to push them to
my Web server when I was done... D'oh!  Stupidity strikes me there, I
guess.

> Once you've done that, many of your branches will be ok again. There
> isn't a lot that can be done for the branches you hadn't pushed the
> tip of though - you'll need to undelete the shared repo to get them
> back.

Ugh.  I was afraid of that, too.

> Oh, and I'd look into do that *before* you do a lot of disk activity
> on your ext4 partition.

I took an LVM snapshot immediately after I realized what I had done, so
that I could preserve the disk state.  Someone in the area has a
forensic utility that claims to undelete from ext4 filesystems, so I am
dd'ing an image of that to an external device to take to him in the
hopes that his utility (which I honestly don't have the money to pay
for, it's like $250 USD) will work.

If, that is, I don't come up with an undelete solution before then.

	--- Mike

-- 
From then on, when anything went wrong with a computer, we said it had
bugs in it.
                            --- Grace Hopper
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20090428/f634f775/attachment.pgp 


More information about the bazaar mailing list