Re: packing directory storage
Paul Winkler <[email protected]>
| Newsgroups | gmane.comp.web.zope.zodb.dirstorage |
|---|---|
| Message-ID | <[email protected]> |
On Sat, Jun 26, 2004 at 12:45:52PM +0100, Toby Dickenson wrote: > On Wednesday 23 June 2004 20:40, Paul Winkler wrote: > > > If you run ZEO, you should also be able to pack like this > > (for zope 2.7.x): > > > > ./bin/zopectl debug > > Starting debugger (the name "app" is bound to the top-level Zope object) > > > > >>> cp = app.Control_Panel > > >>> cp.Database['main'].manage_pack(days=1) > > > > ... assuming it's your main database you want to pack. > > Its worth pointing out some security considerations with this approach.... The > zeo network protocol has no security features. If you run your zope and zeo > processes under their own user account, you probably want to switch to that > user before running this script. yes, I always do that. -- Paul Winkler http://www.slinkp.com ------------------------------------------------------- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com