Hello I'm using mdbox for mail storage. I'd like to give users an option to recover backups into a new folder, say, Backup-$date. Is there a simple way to do this? I was looking at tools like dsync and doveadm-altmove but apparently they're not intended for this kind of stuff. Thanks in advance, Andre
On 5.10.2010, at 13.56, Andre Nathan wrote:> I'm using mdbox for mail storage. I'd like to give users an option to > recover backups into a new folder, say, Backup-$date. > > Is there a simple way to do this? I was looking at tools like dsync and > doveadm-altmove but apparently they're not intended for this kind of > stuff.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
On Tue, 2010-10-05 at 09:56 -0300, Andre Nathan wrote:> I'm using mdbox for mail storage. I'd like to give users an option to > recover backups into a new folder, say, Backup-$date.Added to hg: This example imports all mails from a backup under a backup-20101026 mailbox: doveadm import -u jane.doe at example.org \ mdbox:/backup/20101026/jane.doe/mdbox backup-20101026 all Another example that imports only messages from foo at example.org in the backup mdbox's INBOX to jane's INBOX: doveadm import -u jane.doe at example.org \ mdbox:~/mdbox-backup mailbox INBOX from foo at example.org