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