[Zope-CMF] Automatic Packing

Jo Meder jo@meder.de
Tue, 30 Jul 2002 10:31:06 +0200


Am 30.07.2002, 04:25 Uhr
	schrub Aris Santillan <aris.santillan@summitmedia.com.ph>:

> im new to zope.. where can i get script that will automatic pack the ZODB? 
> im planning to put it on cron jobs.

Solved that by setting up wget to call the appropriate URL

wget --http-user=**** --http-passwd=**** \
     http://my.zope.host/Control_Panel/Database/manage_pack \
     -O /dev/null

If you're security-concious you can avoid having the name and password
in your cron-script by supplying them in wgetrc and making that readable
only for root. 


	Jo.


-- 
Internetmanufaktur Jo Meder ---------------------- Berlin, Germany
http://www.meder.de/ ------------------- fon: ++49-30-417 17 63 33
Kollwitzstr. 75 ------------------------ fax: ++49-30-417 17 63 45
10435 Berlin --------------------------- mob: ++49-170- 2 98 89 97
Public GnuPG-Key ---------- http://www.meder.de/keys/jo-pubkey.txt