[Zope] Re: automated object exporting

Josef Meile jmeile at hotmail.com
Thu Sep 28 05:52:30 EDT 2006


Hi Sascha,

> I have a Zope object (a Plone site, to be specific) that I would like to 
> have exported on a regular basis so I can back it up to another server. 
> While I am familiar with Python, I'm not familiar with the specific 
> methods involved in interacting with Zope for this. How would I go about 
> doing this?
I saw other advised you to use wget + cron; however, there is also an 
interesting approach with ZEO. I haven't tried it myself 'cause I'm not 
using it, but if you have it enabled in your zope, then you can look at 
this:

* Accessing zope through command-line python
   http://mail.zope.org/pipermail/zope/2003-February/131882.html

Somebody correct me if I'm wrong, but it seems that you don't need to 
give any password when running such out-of-process script; you just need 
to put it on a users account able to access the zope files. On the 
contrary, with wget, you will need either to pass a user and password 
with manager rights to the command line, or store it in PLAIN-TEXT in a 
file called .wgetrc.

If you opt to use the alternative with the .wgetrc, then you had better 
save it in the home directory of an administrative account (ie: root in 
linux) and deny all access rights for the other users.

The other alternative would to use some schedule products for zope:

* ClockServer
   http://plope.com/software/ClockServer

* ZopeScheduler -> Not on line at the moment
   http://dev.legco.biz

There are maybe others, you will have to google.

Regards
Josef


More information about the Zope mailing list