I am using mdbox for dovecot storage. I wonder if I could skip "dovecot.index.cache" files and, in general, "*.cache" files when doing mail backup. Those files are big and change frequently. What I feel from reading documentation [1][2] is that they could be dropped in the backups, to be recreated on the fly if needed. But I would like expert confirmation. [1] http://wiki2.dovecot.org/IndexFiles [2] http://wiki2.dovecot.org/Design/Indexes/Cache Thanks!. -- Jes?s Cea Avi?n _/_/ _/_/_/ _/_/_/ jcea at jcea.es - http://www.jcea.es/ _/_/ _/_/ _/_/ _/_/ _/_/ Twitter: @jcea _/_/ _/_/ _/_/_/_/_/ jabber / xmpp:jcea at jabber.org _/_/ _/_/ _/_/ _/_/ _/_/ "Things are not so easy" _/_/ _/_/ _/_/ _/_/ _/_/ _/_/ "My name is Dump, Core Dump" _/_/_/ _/_/_/ _/_/ _/_/ "El amor es poner tu felicidad en la felicidad de otro" - Leibniz -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 538 bytes Desc: OpenPGP digital signature URL: <http://dovecot.org/pipermail/dovecot/attachments/20140326/5cc80a89/attachment-0001.sig>
i'm not the expert you're looking for, so dont take my word as one. And i'm basically using Maildir instead of mdbox ... Anyway, i have dropped 'dovecot.index*' from some backups, full and incremental ones, action which made me save some Gbs of space on them. I already restored some accounts from these backups and had absolutely no problem at all ! Em 26/03/14 05:05, Jesus Cea escreveu:> I am using mdbox for dovecot storage. > > I wonder if I could skip "dovecot.index.cache" files and, in general, > "*.cache" files when doing mail backup. Those files are big and change > frequently. What I feel from reading documentation [1][2] is that they > could be dropped in the backups, to be recreated on the fly if needed. > > But I would like expert confirmation. > >-- Atenciosamente / Sincerily, Leonardo Rodrigues Solutti Tecnologia http://www.solutti.com.br Minha armadilha de SPAM, N?O mandem email gertrudes at solutti.com.br My SPAMTRAP, do not email it
On 03/26/2014 04:05 AM, Jesus Cea wrote:> What I feel from reading documentation [1][2] is that they > could be dropped in the backups, to be recreated on the fly if needed.If you are using maildir, then yes, that's my understanding too, those files don't contain data that doesn't exist anywhere else. But beware that if you end up restoring many or all mailboxes at the same time, without indexes, then you will have lots of I/O activity for a while, as all of your users log in and the indexes are recreated. In some situations this might be overwhelming, depending on your workload/hardware.
On 26/03/14 09:05, Jesus Cea wrote:> I am using mdbox for dovecot storage. > > I wonder if I could skip "dovecot.index.cache" files and, in general, > "*.cache" files when doing mail backup. Those files are big and change > frequently. What I feel from reading documentation [1][2] is that they > could be dropped in the backups, to be recreated on the fly if needed. > > But I would like expert confirmation. > > [1] http://wiki2.dovecot.org/IndexFiles > [2] http://wiki2.dovecot.org/Design/Indexes/Cache1. I stopped "dovecot". 2. I did a ZFS snapshot (play safe!), and disabled incoming messages. 3. I deleted ALL "dovecot.index.cache" (one per mailbox, I have about 500 mailboxes) without any apparent effect. 4. I started dovecot. 5. I moved around with apparently no side-effects. Cache are recreated, small size, growing as you download messages. I still would love an authoritative answer. -- Jes?s Cea Avi?n _/_/ _/_/_/ _/_/_/ jcea at jcea.es - http://www.jcea.es/ _/_/ _/_/ _/_/ _/_/ _/_/ Twitter: @jcea _/_/ _/_/ _/_/_/_/_/ jabber / xmpp:jcea at jabber.org _/_/ _/_/ _/_/ _/_/ _/_/ "Things are not so easy" _/_/ _/_/ _/_/ _/_/ _/_/ _/_/ "My name is Dump, Core Dump" _/_/_/ _/_/_/ _/_/ _/_/ "El amor es poner tu felicidad en la felicidad de otro" - Leibniz -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 538 bytes Desc: OpenPGP digital signature URL: <http://dovecot.org/pipermail/dovecot/attachments/20140329/26a81d1f/attachment-0001.sig>
On 26.3.2014, at 10.05, Jesus Cea <jcea at jcea.es> wrote:> I am using mdbox for dovecot storage. > > I wonder if I could skip "dovecot.index.cache" files and, in general, > "*.cache" files when doing mail backup. Those files are big and change > frequently. What I feel from reading documentation [1][2] is that they > could be dropped in the backups, to be recreated on the fly if needed.Yeah. dovecot.index.cache files never contain anything that can't be regenerated (except maildir messages' save-timestamps, but those are pretty much irrelevant).