RE: [Zope] Automated packing of ZopeDB
-----Original Message----- From: Michael Schmeing [mailto:michael@internet-factory.de] Sent: Tuesday, November 23, 1999 10:13 AM To: zope@zope.org Subject: [Zope] Automated packing of ZopeDB
I am currently running one Zope server for a customer of ours and I am preparing to start several more. To save disk-space (as our customers pay for the space they use) the Zope database has to be packed on a daily basis.
With the one Server we are hosting currently that has been no problem doing it manually but when the next sites are moved this can not be done manually any more.
So my question is does anybody know how Zope databases (both version 1.x and 2.x) can be packed automatically?
Any method running on Linux is OK by me, either inside Zope or cron-based or whatever.
Use Cron to fire up a simply python script that uses ZClient to call the manage_pack or whatever method to pack the database. See lib/python/ZPublisher/Client.py for info on how to use ZClient. It's pretty simple: import Client x=Client.call('http://server.com/manage_whatever', username='superuser', password='bob') etc.... -Michel
participants (1)
-
Michel Pelletier