[Dovecot] Dsync only one mailbox

Timo Sirainen tss at iki.fi
Mon Jun 24 23:18:29 EEST 2013


On 23.6.2013, at 18.29, Piotr Janusz <p.janusz at nsm.pl> wrote:

> I am looking for a way to sync only selected files/mailbox'es using dsync.
> Am I using the dsync -m option incorectly?
> It looks like it's being ignored.
> And as for the main INBOX (/var/mail/username) what should be the parameter for -m?
> 
> dovecot --version
> 2.1.7
> 
> dsync -u pj -D -v -m Alerts -o mail_location=mdbox:/home/pj/mdbox backup mbox:/home/pj/:INBOX=/var/mail/pj
..
> dsync(pj): Error: Failed to sync mailbox www/IMG_20121119_184255.jpg: Mailbox isn't a valid mbox file
> dsync(pj): Error: Failed to sync mailbox www/rtranalizer.exe: Mailbox isn't a valid mbox file
> dsync(pj): Error: Failed to sync mailbox www/raport_nsm.rar: Mailbox isn't a valid mbox file

dsync always wants to scan through all the mailboxes that exist, even though you give the -m parameter. I don't think it's actually failing even though it's returning an error. The proper solution anyway would be to place the backup to a directory that doesn't contain other files..



More information about the dovecot mailing list