Roman Milner wrote:
Following a corrupted Data.bbb disaster I want to automate the backing up of my Data.bbb. My question is - do I need to shut down zope before copying Data.bbb to ensure that it is closed properly?
Currently, yes, however, It should not be necessary to. The issue is that Zope may partially write a record while the database is backed up. Currently, when Zope detects a partially written record on start up, it simply reports an error. I've made a change to BoboPOS.SimpleDB to recover if the last record in a database had been partially written. I'm attaching a new SimpleDB module that implements this change. To use it, simply put it in your BoboPOS package (lib/python/BoboPOS) in your Zope distribution and restart Zope.
If so, how can I shutdown zope properly from the command line?
You would need to use the Zope Client nachinery to make a web call. Jim -- Jim Fulton mailto:jim@digicool.com Technical Director (888) 344-4332 Python Powered! Digital Creations http://www.digicool.com http://www.python.org Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats.