I run the cyrus imap server as my mail server.  One of the things it
maintains is a database is visited message ids, to avoid duplicate message
delivery.

This database is maintained with Berkeley DB, configured to write a logfile
and several __db.001 through __db.006 files.

The problem I'm having is that I can't back these files up reliably.

  - Cyrus somehow seems to be able to change these files without changing
    the ctime or mtime.  Without the change, my backup doesn't think
    they've changed.

  - Even on exit, they don't get touched.  A restart of imapd does touch
    the files.

I'm wondering if I should worry about it.  Perhaps the log file contains
enough information to reconstruct whatever state the db files should be in
when they were last touched.  It also might not matter, the worst case
being a few days of duplicate messages being delivered.

What I'm really wondering is how the program can be modifying the files
without touching the timestamps.  I tried using mmap myself, and I can't
change the data without updating the mtime.

Dave


--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list

Reply via email to