how to restore a backup of single mailbox/folder with many subfolders without disturbing the other mailboxes

Robert Noll nollr at leenox.de
Wed Mar 10 08:40:05 EST 2010


Patrick Boutilier wrote:
> On 03/10/2010 09:14 AM, Robert Noll wrote:
>   
>> Patrick Boutilier wrote:
>>     
>>> On 03/10/2010 06:52 AM, Robert Noll wrote:
>>>
>>>       
>>>> Hi all,
>>>>
>>>> i'd like to ask for advice on how to restore a backup of single mailbox
>>>> without disturbing the other mailboxes.
>>>>
>>>> Let's say user albert deleted an important folder with many (100+,
>>>> hierarchy) subfolders accidentally.
>>>> A complete system backup from yesterday evening is available,
>>>> but i don't want to restore the whole mail-system to the state of yesterday
>>>> because that would mean other users would loose anything that has
>>>> happened since then (sent, received etc).
>>>>
>>>> Following some info i found,
>>>> i created a new mailbox folder for the user in the mailsystem
>>>> (albert/myrestore)  ,
>>>> restored the files from the backup system in there,
>>>> and ran   reconstruct -r albert/myrestore
>>>>
>>>> while the mails directly inside the folder are now visible correctly,
>>>> the subfolders are not visible,
>>>> any idea how to solve this ?
>>>>
>>>>         
>>> Try the -f option with reconstruct.
>>>
>>> -f     Examine the filesystem underneath mailbox, adding all directories
>>> with a cyrus.header found there as new mailboxes.  Useful for
>>>                 restoring mailboxes from backups.
>>>
>>>
>>>
>>>       
>>>> please advise =)
>>>> Regards,
>>>> Robert Noll
>>>> ----
>>>> Cyrus Home Page: http://cyrusimap.web.cmu.edu/
>>>> Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
>>>> List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
>>>>
>>>>         
>>> ----
>>> Cyrus Home Page: http://cyrusimap.web.cmu.edu/
>>> Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
>>> List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
>>>
>>>       
>> Thanks for the reply,
>> using -f from within cyradm gave me an error
>>
>> cyrus at mailserver$ cyradm localhost
>> ... pw entry ...
>> localhost>  reconstruct -f user/albert/myrestore
>>
>> usage: reconstruct [-r] mailbox
>>
>> but manually calling  /usr/sbin/cyrreconstruct -f user/albert/myrestore
>>     
>
>
> /usr/sbin/cyrreconstruct -fr user/albert/myrestore
>   ?
>
>
>   
Hi,

i just tried  that  ( cyrus at mailserver$ /usr/sbin/cyrreconstruct -fr 
user/albert/myrestore )

it outputs the mailbox folders, but still no subfolders visible in the 
email/imap client and webmail
i also tried  $ /etc/init.d/cyrus2.2 restart
but still empty.
they are listed when doing cyradmin  :  lm user/albert/*        
anything else i need to restart to get them to show up ?

regards
Robert Noll

 


More information about the Info-cyrus mailing list