Re: [Zope] Re: Packing data.fs programmatically
On 25 Feb 2006, at 04:27, Derrick Hudson wrote: | Then introduce it, it's simple to set up and adds a world of | functionality! I could. I'd have to learn how to work with it :-). The deployments I've worked with are all single uniprocessor machines, thus ZEO wouldn't yield a performance improvement. I should learn ZEO one of these days. Thinking of ZEO just as a "performance improvement" is doing it a great disservice. Think of it simply in terms of decoupling the appserver from the database server and the flexibility that gives you by being able to access the database server separately. jens ___ 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 )
[Zope] Re: Packing data.fs programmatically
On Fri, Feb 24, 2006 at 09:18:35PM +, Chris Withers wrote: | Derrick Hudson wrote: | >Chris, | > | >On Tue, Jan 31, 2006 at 01:36:36PM +, Chris Withers wrote: | >| ZEO & Stepper | > | >Is ZEO required to use Stepper? | | Yes, otherwise you'd have to shut down your Zope instance to run Stepper ;-) | | >Does 'zopectl run' require exclusive access to the database? (IOW | >must the zope server be stopped before zopectl run can be used?) | | Not if you're using ZEO. Thanks Paul and Chris. | >I just came across this thread and have a situation where this would | >be useful, however ZEO is not used for that deployment. | | Then introduce it, it's simple to set up and adds a world of | functionality! I could. I'd have to learn how to work with it :-). The deployments I've worked with are all single uniprocessor machines, thus ZEO wouldn't yield a performance improvement. I should learn ZEO one of these days. -D -- If you hold to [Jesus'] teaching, you are really [Jesus'] disciples. Then you will know the truth, and the truth will set you free. John 8:31-32 www: http://dman13.dyndns.org/~dman/jabber: [EMAIL PROTECTED] signature.asc Description: Digital signature ___ 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 )
[Zope] Re: Packing data.fs programmatically
Derrick Hudson wrote: Chris, On Tue, Jan 31, 2006 at 01:36:36PM +, Chris Withers wrote: | ZEO & Stepper Is ZEO required to use Stepper? Yes, otherwise you'd have to shut down your Zope instance to run Stepper ;-) Does 'zopectl run' require exclusive access to the database? (IOW must the zope server be stopped before zopectl run can be used?) Not if you're using ZEO. I just came across this thread and have a situation where this would be useful, however ZEO is not used for that deployment. Then introduce it, it's simple to set up and adds a world of functionality! Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk ___ 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 )
Re: [Zope] Re: Packing data.fs programmatically
On Thu, Feb 23, 2006 at 11:27:59AM -0500, Derrick Hudson wrote: > Does 'zopectl run' require exclusive access to the database? (IOW > must the zope server be stopped before zopectl run can be used?) Yes, IFF you are not running zeo. That's another useful reason to use zeo :-) > I just came across this thread and have a situation where this would > be useful, however ZEO is not used for that deployment. Ah, that's a shame. -- Paul Winkler http://www.slinkp.com ___ 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 )
[Zope] Re: Packing data.fs programmatically
Chris, On Tue, Jan 31, 2006 at 01:36:36PM +, Chris Withers wrote: | ZEO & Stepper Is ZEO required to use Stepper? | Or if you don't like Stepper, then zopectl run... Does 'zopectl run' require exclusive access to the database? (IOW must the zope server be stopped before zopectl run can be used?) I just came across this thread and have a situation where this would be useful, however ZEO is not used for that deployment. -D -- The fear of the Lord leads to life: Then one rests content, untouched by trouble. Proverbs 19:23 www: http://dman13.dyndns.org/~dman/jabber: [EMAIL PROTECTED] signature.asc Description: Digital signature ___ 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 )
Re: [Zope] Re: Packing data.fs programmatically
The product comes with a whole raft of examples for doing things: http://www.simplistix.co.uk/software/zope/stepper base.py and config.py contain the examples, lemme know if you have any problems... Chris Reinoud van Leeuwen wrote: On Tue, Jan 31, 2006 at 01:36:36PM +, Chris Withers wrote: ZEO & Stepper Or if you don't like Stepper, then zopectl run... Chris Sounds interesting. Do you have a working example that you can post here? -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk ___ 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 )
Re: [Zope] Re: Packing data.fs programmatically
On Tue, Jan 31, 2006 at 01:36:36PM +, Chris Withers wrote: > ZEO & Stepper > > Or if you don't like Stepper, then zopectl run... > > Chris Sounds interesting. Do you have a working example that you can post here? -- __ "Nothing is as subjective as reality" Reinoud van Leeuwen[EMAIL PROTECTED] http://www.xs4all.nl/~reinoud __ ___ 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 )
Re: [Zope] Re: Packing data.fs programmatically
ZEO & Stepper Or if you don't like Stepper, then zopectl run... Chris Max M wrote: Chris Withers wrote: Reinoud van Leeuwen wrote: I do it though the webinterface with a wget from the crontab: @daily cd /some_path/zeo_server/var && \ cp Data.fs Data.fs.pre_pack_backup && \ /usr/local/bin/wget \ 'http://myzopeserver/Control_Panel/Database/manage_pack?days:float=0'\ --http-user=special_user \ --http-passwd='some_password' \ --spider &&\cp Data.fs Data.fs.post_pack_backup Oh, ouch ouch bad fragile pain failure suffering... URL whacking is evil and must be punished... What is the better way then? ZEO and ordinary Python scripts? -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk ___ 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 )
[Zope] Re: Packing data.fs programmatically
Chris Withers wrote: Reinoud van Leeuwen wrote: I do it though the webinterface with a wget from the crontab: @daily cd /some_path/zeo_server/var && \ cp Data.fs Data.fs.pre_pack_backup && \ /usr/local/bin/wget \ 'http://myzopeserver/Control_Panel/Database/manage_pack?days:float=0'\ --http-user=special_user \ --http-passwd='some_password' \ --spider &&\cp Data.fs Data.fs.post_pack_backup Oh, ouch ouch bad fragile pain failure suffering... URL whacking is evil and must be punished... What is the better way then? ZEO and ordinary Python scripts? -- hilsen/regards Max M, Denmark http://www.mxm.dk/ IT's Mad Science ___ 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 )
[Zope] Re: Packing data.fs programmatically
Ah-ha, that's another approach I had not thought of! Many thanks! Cheers Jonathan Reinoud van Leeuwen wrote: On Tue, Jan 31, 2006 at 11:38:34AM +, Jonathan Cleaver wrote: I am using the following module to pack my data.fs programmatically before a backup is made. This was largely taken out of the Zopelabs cookbook - thanks! I do it though the webinterface with a wget from the crontab: @daily cd /some_path/zeo_server/var && \ cp Data.fs Data.fs.pre_pack_backup && \ /usr/local/bin/wget \ 'http://myzopeserver/Control_Panel/Database/manage_pack?days:float=0'\ --http-user=special_user \ --http-passwd='some_password' \ --spider &&\ cp Data.fs Data.fs.post_pack_backup ___ 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 )