Injecting a mail folder into a users inbox/restore from backup

Adam Tauno Williams awilliam at whitemice.org
Wed Dec 5 06:03:23 EST 2012


On Wed, 2012-12-05 at 11:47 +0100, Lars Schimmer wrote:
> Hi!
> Aas I never needed to do it yet, I want to ask for the best way to
> restore users email which got lost...
> Situation: running cyrus on debian with users and mailboxes.
> User deleted on accident a folder in his INBOX (and cyrus did unlinked
> the files and removed the folder from disk already).
> I do backup from the INBOX structures on disk every night (in a basic
> simple way, see it as a snapshot of the mail disks of cyrus).
> Now I need a good way to inject the "old" folder user.xyz.INBOX.Folder
> into the live cyrus system.
> Is it easier to create a new user and copy with imap client?
> Or just copy the folder content into a new created folder on users inbox?

I typically just copy the message file(s) back, or in this case the
folder, and run "reconstruct -r -f -k -s user.dude".  Hasn't failed me
yet.

A more elegant way would be nice, but until there is some type of
dump/restore format, moving files around is what you've got.
-- 
Adam Tauno Williams 
System Administrator, OpenGroupware Developer, LPI / CNA
Fingerprint 8C08 209A FBE3 C41A DD2F A270 2D17 8FA4 D95E D383



More information about the Info-cyrus mailing list