Re: packing directory storage
Toby Dickenson <[email protected]>
| Newsgroups | gmane.comp.web.zope.zodb.dirstorage |
|---|---|
| Message-ID | <[email protected]> |
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. You will have open up a big security hole if you run this script from a more privelidged 'system management' user account. ------------------------------------------------------- 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