[ZCM] [ZC] 1608/ 5 Assign "Plone/ZODB backup issue using repozo.py on windows XP/2003"

Collector: Zope Bugs, Features, and Patches ... zope-coders-admin at zope.org
Fri Dec 3 10:58:06 EST 2004


Issue #1608 Update (Assign) "Plone/ZODB backup issue using repozo.py on windows XP/2003"
 Status Accepted, Database/bug medium
To followup, visit:
  http://zope.org/Collectors/Zope/1608

==============================================================
= Assign - Entry #5 by tim_one on Dec 3, 2004 10:58 am

 Status: Pending => Accepted

 Supporters added: tim_one

repozo.py works fine on Windows too.  The output you got suggests you're using an old repozo, with the bug in:

    http://zope.org/Collectors/Zope/1330

which in turn references a bug filed in a wrong place:

    http://sourceforge.net/tracker/?func=detail&atid=115628&aid=953518&group_id=15628

That bug was repaired in ZODB 3.2.2, and was a critical bug.  It's not only that repozo can make full backups when they're not needed, more importantly it can create insane backups.

The symptom in the output you gave is that a .dat file showed up in the list of "files needed to recover state as of ...".  A .dat file should never appear in such a list, but prior to ZODB 3.2.2 it *could*, depending on platform-specific accidents in the ordering of file names returned by os.listdir().

So please get a repozo.py from ZODB 3.2.2 or later (ZODB 3.2.4 is the current stable release), and try again.  Sorry, I don't know anything about Plone, so can't tell you exactly what you need to do.  You should get rid of your old repozo backups first, because chances are good that they're damaged (due to the bug explained above).

________________________________________
= Edit - Entry #4 by tim_one on Dec 3, 2004 10:40 am

 Changes: edited transcript, new comment

Edited the original report to insert line breaks in repozo's output -- it's unintelligible otherwise.
________________________________________
= Edit - Entry #3 by tim_one on Dec 3, 2004 10:38 am

 Changes: edited transcript, new comment

Changed topic to database.
________________________________________
= Request - Entry #1 by hccheung on Dec 3, 2004 9:57 am

Apologies if this is not correct place to raise this...
Also note that I am a newbie with plone/Zope/Python.

My problem 
========== 
My problem is that every time I run this utility, it seems to only generate a full backup. The command I used is:

"D:\tools\Plone 2\Python\python.exe" repozo.py -B -v -r "D:\tools\Plone 2\backup" -f "D:\tools\Plone 2\Data\var\Data.fs"

and it generates the following output:

looking for files b/w last full backup and 2004-12-02-10-19-10...
files needed to recover state as of 2004-12-02-10-19-10:
        D:\tools\Plone 2\backup\2004-12-02-10-05-48.fs
        D:\tools\Plone 2\backup\2004-12-02-10-05-48.dat
repository state: 2912712 bytes, md5: 2d261a92921e4b9066e3e6b053da3870
current state : 2912621 bytes, md5: 29bcfdad66343f2040beb6e96ae3d3a4
backed up state : 2912712 bytes, md5: 29bcfdad66343f2040beb6e96ae3d3a4
file shrunk, possibly because of a pack (full backup)
writing full backup: 2912621 bytes to D:\tools\Plone 2\backup\2004-12-02-10-19-10.fs

I also tried this out with the latest version of Zope I downloaded, and it does the same thing.

All the examples that I can find on the web for this script seems to be for Unix-like machines. Does this mean it only works on that environment?

Any ideas, comments and solutions will be gratefully recieved.


==============================================================



More information about the Zope-Collector-Monitor mailing list