[ZODB-Dev] Remember date of last pack?

Christian Zagrodnick cz at gocept.com
Mon Jul 26 14:12:00 EDT 2010


On 2010-07-26 17:38:10 +0200, Hanno Schlichting said:

> On Mon, Jul 26, 2010 at 5:14 PM, Christian Zagrodnick <cz at gocept.com> wrote:
>> for monitoring if a storage has been packed it would be handy if it
>> remembered the date of its last pack. An easy solution for file storage
>> would be to create a Data.fs.packed file.
>> 
>> Other ways do determine the date would be:
>> 
>> - Use age of Data.fs.old: very implicit; file is not available during
>> packing (thus monitoring becomes difficult); it is not required to keep
>> Data.fs.old
>> - Provide a wrapper script around zeopack which stores the information:
>> while that would work it is rather tedious to provide that again and
>> again for each buildout/installation.
> 
> - Configure repozo to do incremental backups and keep some old
> backups. Configure zeopack to run regularly. Check that you have a
> recent full repozo backup around, which gets created automatically
> once you do a pack.

I don't understand how that helps that the database was packed. If 
*course* there is an automatic job to pack the database. But that 
doesn't necessarily mean that it works. Hence a *test* to monitor that 
the database was packed.

-- 
Christian Zagrodnick · cz at gocept.com
gocept gmbh & co. kg · forsterstraße 29 · 06112 halle (saale) · germany
http://gocept.com · tel +49 345 1229889 4 · fax +49 345 1229889 1
Zope and Plone consulting and development




More information about the ZODB-Dev mailing list