Hi, 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? Thanks, -Sascha
If you are in a *nix environment i would suggest investigating 'cron' and using the 'manage_exportObject' method (google away!) hth Jonathan ----- Original Message ----- From: Sascha Adler To: zope@zope.org Sent: Wednesday, September 27, 2006 5:24 PM Subject: [Zope] automated object exporting Hi, 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? Thanks, -Sascha ------------------------------------------------------------------------------ _______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Or in windows, do a similar thing using a scheduled task and wget (from cygwin) to invoke manage_exportObject with the options you want. Josh On 28/09/06, Jonathan <dev101@magma.ca> wrote:
If you are in a *nix environment i would suggest investigating 'cron' and using the 'manage_exportObject' method (google away!)
hth
Jonathan
----- Original Message ----- *From:* Sascha Adler <sascha.adler2@gmail.com> *To:* zope@zope.org *Sent:* Wednesday, September 27, 2006 5:24 PM *Subject:* [Zope] automated object exporting
Hi,
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?
Thanks, -Sascha
------------------------------
Jonathan wrote:
If you are in a *nix environment i would suggest investigating 'cron' and using the 'manage_exportObject' method (google away!)
If this is for backup, I wouldn't bother. Just use repozo like you're supposed to ;-) Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk
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 think you don't have to be familiar with anything specific for Zope. Simply backup <Zope instance>/var/data.fs file (or data.fs in ZEO server if you're using one). As the others already said you may do it with cron and some bash scripts. If you need to backup only some portions of your's ZODB then you'll have to deal with Zope export features. You may also think about something like zsyncer. -- Maciej Wisniowski
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
participants (6)
-
Chris Withers -
Jonathan -
Josef Meile -
Josh Burvill -
Maciej Wisniowski -
Sascha Adler