[Zope-dev] Re: Help! Need to extract files out of Data.fs!

Kris Adcock geek at danceswithferrets.org
Mon Aug 28 16:54:23 EDT 2006


--- Philipp von Weitershausen <philipp at weitershausen.de> wrote:
> Kris Adcock wrote:

> > I've tried going through the "Undo" procedure, but the idea of manually
> > ticking 130,000 boxes (in pages of 20) and undoing them fills me with
> dread.
> 
> Hmm, this is something I don't understand. You deleted 130,000 files in
> individual transactions? If you deleted the 130,000 files in one big
> transaction, all you have to do is undo this one transaction. That is,
> of course, provided that any subsequent transaction you made after
> deleting the files won't cause inconsistencies and potentially prevent
> the undo.

Perhaps the Windows FTP client chooses to scan through the folder structure
itself and individually delete each file? I'm certainly looking at 130,000
entries, anyway. I'd be much happier if I only had to undo one transaction!
:(

> 
> > Please please /please/ .... does anyone happen to have the file format
for
> > the Data.fs file so that I could write a C program to extract and
recreate
> > the files and folders to another server? Or has anyone written such a
> program
> > already? If so, I'll happily have your children if you can help me out!
> As it
> > stands, I'm going to have to break it to the librarian (the poor man who
> has
> > been collating all the reference material for the last six months) that
> I've
> > lost half of his work, and blaming it on the poor FTP client in Windows
> seems
> > a bit lame!
> 
> No need for a C program. The ZODB is a Python library, you can use
> Python to get at your data. The simplest way is to start the Zope debug
> shell via bin/zopectl debug. You will then have access to the root
> object in the interpreter prompt and can poke at your objects, including
> their history. Writing a script and running it via bin/zopectl run
> shouldn't be a big problem after that.

I'd better start reading my Python book, then ... 

Cheers!

Kris.


More information about the Zope-Dev mailing list