On Wed, 2010-10-06 at 11:14 -0300, Andre Nathan wrote:
# 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,
You mean all mailboxes under that?
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?
Yeah, there's currently no way to restore entire hierarchy of mails, you'd have to do it one mailbox at a time. Or .. hmm. there are some pretty horrible workarounds though.. For example you could do:
dsync -o mail_location=mdbox:mdbox:/var/spool/imap/partition7/11/andre=sneakymustard.com:INDEX=/var/lib/imap/user/11/andre=sneakymustard.com:MAILBOXDIR=mailboxes/backup-1234 -u ..etc..
So basically override the default mail_location but only change the mailboxes/ directory to mailboxes/backup-1234. I think that should work. Take a backup first. :)