Re: Backing up and restoring maildir folders

2017-05-22 Thread Leonardo Rodrigues


Backing up maildir is easy, just backup (and restore) the whole 
thing and, usually, that's as simple as that.


However, for saving some backup space if that's a matter, i would 
exclude only the 'dovecot.index.cache*' files, as these can be rebuilt 
(some performance hit after the restore, of course) but, in some 
servers, that makes almost a 10% difference to me.


Besides the cache files, you really should backup everything inside 
the maildir folders.



Em 22/05/17 13:40, Timothy D Legg escreveu:

Hello,

I am migrating to a different distribution of  Linux that involves
changing to an earlier version of dovecot (2.2.22 to 2.2.13).  As part of
this process, I will be copying several maildirs to the new machine.  One
of these has a number of files and directories that resemble this one
example:



--


Atenciosamente / Sincerily,
Leonardo Rodrigues
Solutti Tecnologia
http://www.solutti.com.br

Minha armadilha de SPAM, NÃO mandem email
gertru...@solutti.com.br
My SPAMTRAP, do not email it


Backing up and restoring maildir folders

2017-05-22 Thread Timothy D Legg
Hello,

I am migrating to a different distribution of  Linux that involves
changing to an earlier version of dovecot (2.2.22 to 2.2.13).  As part of
this process, I will be copying several maildirs to the new machine.  One
of these has a number of files and directories that resemble this one
example:

cur/
dovecot.index
dovecot.index.cache
dovecot.index.log
dovecot.mailbox.log
dovecot-uidlist
dovecot-uidvalidity
dovecot-uidvalidity.59206030
.Drafts/
new/
.Sent/
subscriptions
tmp/
.Trash/

Is it good enough to simply stop dovecot and tar this folder, and others
like it, and copy them back to a similar location on the new installation?
 I haven't yet seen anything that resembles an official or standardized
backup/recovery method for dovecot.

With thanks and appreciation,

Tim Legg