Re: restore email

From: Sam (no email)
Date: Tue Aug 01 2006 - 19:10:10 EDT

  • Next message: Andrew Morgan: "Re: restore email"

    Andrew Morgan wrote:
    > On Tue, 1 Aug 2006, Sam wrote:
    >
    >> Hi,
    >>
    >> I want to restore some email from the email backup directory.
    >> I created a directory called "backup" in a user/me directory, and
    >> executed reconsturct from cyrus, but after relogin the mail client, I
    >> don't see user/me/backup exist from the mail client.
    >>
    >> I want to copy all the following backup file to the user/me/backup/
    >> folder, so that the mail client can browse thru all backup email from
    >> that folder without mess up the new emails.
    >>
    >> Can anyone please tell me how to do that in cyrus?
    >
    > Here are the steps I use to restore mail for a user:
    >
    > 1. Locate user's mail directory
    > (/var/spool/cyrus/mail/prefix/user/username).
    > 2. Change to that directory.
    > 3. Make a RESTORE directory (mkdir RESTORE).
    > 4. Fix ownership/perms (chown cyrus:mail RESTORE; chmod 700 RESTORE).
    > 5. Change to the directory containing the mail folder the user wants
    > restored.
    > 6. Run 'recover', the Legato backup client.
    Hi I am not using Legato backup client. What I have is only a copy of
    the user /mail/imap/spool/user/sam directory.
    eg.
    # ls -l
    total 52
    drwx------ 2 root wheel 512 Aug 1 17:24 Drafts
    drwx------ 2 root wheel 512 Aug 1 17:24 Sent Items
    drwx------ 2 root wheel 512 Aug 1 17:24 Trash
    -rw------- 1 root wheel 4 Aug 1 17:24 cyrus.cache
    -rw------- 1 root wheel 179 Aug 1 17:24 cyrus.header
    -rw------- 1 root wheel 76 Aug 1 17:24 cyrus.index
    -rw------- 1 root wheel 39983 Aug 1 17:24 cyrus.squat

    Can I just copy the older fodlers/files from the backup server to the
    production mail server and execute steps 12 and 13 as you mentioned below?

    Thanks
    Sam
    > 7. 'changetime' to change the time to recover data from.
    > 8. 'add filename' to add the files to restore. To restore all the
    > messages in the folder, use 'add *. cyrus.header'.
    > 9. 'relocate RESTORE' to recover files into the RESTORE directory
    > instead of the current directory.
    > 10. 'recover' to recover the files.
    > 11. 'quit' to quit out of the recover program.
    > 12. Run "su cyrus -c '/usr/local/cyrus/bin/reconstruct -f
    > user.username'".
    > 13. Run "su cyrus -c '/usr/local/cyrus/bin/quota -f user.username'".
    >
    >
    > Andy
    >
    >

    ----
    Cyrus Home Page: http://asg.web.cmu.edu/cyrus
    Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
    List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
    

  • Next message: Andrew Morgan: "Re: restore email"





    Hosted Email Solutions

    Invaluement Anti-Spam DNSBLs



    Powered By FreeBSD   Powered By FreeBSD