The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Restoring from cPanel Archive

Discussion in 'E-mail Discussions' started by wzd, Sep 10, 2015.

  1. wzd

    wzd Well-Known Member

    Joined:
    Dec 16, 2005
    Messages:
    118
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    South Africa
    cPanel Access Level:
    Root Administrator
    When WHM was updated to have the Archive feature we enabled this on our client's accounts in the hope that it would come in use one day.

    Today one of our client's wiped out 3 days worth of emails from their account - We managed to access the Archive's Webmail via Horde and all the archives email's are stored by day in "incoming" and "outgoing"

    This appears to be quite a painful process. How are we supposed to retrieve 3 days of worth of emails from this archive? Forward Each email to the client?
    This feature hasn't been very well thought out at all!
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,723
    Likes Received:
    660
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    The email archiving feature is not designed for backups to your email accounts. If you want to restore email from a backup, it's better to restore it from a backup archive of the account. Are backups enabled on this system?

    Thank you.
     
  3. wzd

    wzd Well-Known Member

    Joined:
    Dec 16, 2005
    Messages:
    118
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    South Africa
    cPanel Access Level:
    Root Administrator
    Hi Michael,

    Yes we have backups both locally, rsynced and to an S3 Bucket - How would you recommend that we restore specific emails from a specific account over a specific period?
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,723
    Likes Received:
    660
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    You can find the backup archive from the backup generation date of your choosing, and then manually extract the email contents from the archive (e.g. using the "tar --extract" functionality). The email data is stored in:

    /home/$username/mail/$domain/$email-account-name

    Copying over the extracted data to it's associated directory will not overwrite the new emails that have since generated in the directory, as each email has a unique name.

    Thank you.
     
Loading...

Share This Page