[Zope] undoing ZODB transaction from command line

BRYAN OGAWA bko@cisco.com
Wed, 8 May 2002 11:24:22 -0700 (PDT)


On Wed, 8 May 2002, Chris Withers wrote:

> BRYAN OGAWA wrote:
> > 
> > I was wondering how to undo a ZODB transaction from the command line.  I
> > deleted vurt (the default VirtualHostMonster instance) on our website and
> > it killed everything.
> 
> You can either just lop a few bites off the end of the ZODB, or you can
> write some Python to open the ZODB and then call the undo method...
> 
> (the second option is harder ;-)

I did that and it worked.  I used tranalyzer to figure out how much to lop
off

	http://www.zope.org/Members/tsarna/Tranalyzer

and used head -b to make a slightly smaller version of my db (which isn't
portable, but is great for this purpose).

Thanks,

bryan


> 
> cheers,
> 
> Chris
> 

-- 
Bryan K. Ogawa  <bko@cisco.com>  http://www.vovida.org/