Re: Notmuch and backups

Subject: Re: Notmuch and backups

Date: Sun, 07 Mar 2021 13:51:14 -0400

To: Matt Armstrong,


From: David Bremner

Matt Armstrong <> writes:
> David, your recent changes that allow configurable separation of the
> mail store and .notmuch files look like good ideas to me.


> Separately, I've recently set up backups of my system and noticed that
> the Xapian files are an order of magnitude larger than the notmuch dumps
> (3.6 GiB vs. 15 MiB).  Is there any turn key code in notmuch itself to
> keep a rolling set of "recent" notmuch dumps?

There is nothing turnkey. One thing that might be of interest is the
ability to do incremental backups via lastmod: queries. This would
require seperately tracking the output of "notmuch count --lastmod
'*'. It's not clear the extra complexity is worth for daily backups.

Personally I backup tags indirectly as part of a tag synchronization
script called "gitmuch" that I write many years ago. Others report doing
the same thing with nmbug, which is shipped with notmuch source.

notmuch mailing list --
To unsubscribe send an email to