[Dovecot] Backup recovery with mdbox

Andre Nathan andre at digirati.com.br
Wed Oct 6 17:14:09 EEST 2010


On Tue, 2010-10-05 at 14:13 +0100, Timo Sirainen wrote: 
> dsync could work, although with some small kludging:
> 
> 1. Put the old backup to e.g. ~/backup
> 
> 2. Rename the mailbox to whatever you want in destination, e.g. mv ~/backup/mailboxes/foo ~/backup/mailboxes/foo-$date
> 
> 3. Copy the mailbox: dsync -m foo-$date mirror mdbox:~/backup

Hello

I'm doing the following:

* Backups are extracted in /home/andre/backup/{spool,lib}

* The user mail_location is 
mdbox:/var/spool/imap/partition7/11/andre=sneakymustard.com:INDEX=/var/lib/imap/user/11/andre=sneakymustard.com

* I tried the following commands:

# dsync -R -u andre=sneakymustard.com -m backup_2010-10-01-23 backup
"mdbox:/home/andre/backup/spool:INDEX=/home/andre/backup/lib"

# dsync -u andre=sneakymustard.com -m backup_2010-10-01-23 -o
mail_location="mdbox:/home/andre/backup/spool:INDEX=/home/andre/backup/lib" backup "mdbox:/var/spool/imap/partition7/11/andre=sneakymustard.com:INDEX=/var/lib/imap/user/11/andre=sneakymustard.com

The intent is that a folder called "backup_2010-10-01-21" is created in
that mailbox, with the contents from /home/andre/backup stored in it,
but nothing is created. I believe this is because there's no
"backup_2010-10-01-21" folder in the recovered backup. Is there a way
around this?

Thanks,
Andre



More information about the dovecot mailing list