How to skip errors on doveadm backup for migration ?
Timo Sirainen
tss at iki.fi
Fri Jan 8 15:39:51 UTC 2016
On 08 Jan 2016, at 12:50, Christoph Adomeit <Christoph.Adomeit at gatworks.de> wrote:
>
> Hi there,
>
> I have to migrate data out of a very old (debian 4) and buggy cyrus mailserver.
> About 40 Users with 200000 Messages each.
>
> Doveadm backup works quite well and gives me most of the mails. About every 100.000 Mail
> cannot be exported by cyrus. I do not want to bother about these errors.
> Maybe it is filesystem, maybe it is memory leak, or cyrus bug or whatever.
>
> My problem is that doveadm backup exits with an error if it cannot read a mail.
What does Cyrus reply? Is it a NO reply to FETCH command?
> Is there some way or option to make doveadm backup just skip the errors and continue with the next message ?
Not currently. You could try if the attached patch helps. It should write the mail as empty.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: diff
Type: application/octet-stream
Size: 546 bytes
Desc: not available
URL: <http://dovecot.org/pipermail/dovecot/attachments/20160108/60e67c97/attachment.obj>
-------------- next part --------------
More information about the dovecot
mailing list