Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Restoring from cPanel Archive

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

  1. wzd

    wzd Well-Known Member

    Joined:
    Dec 16, 2005
    Messages:
    120
    Likes Received:
    1
    Trophy Points:
    168
    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!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,803
    Likes Received:
    1,898
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. wzd

    wzd Well-Known Member

    Joined:
    Dec 16, 2005
    Messages:
    120
    Likes Received:
    1
    Trophy Points:
    168
    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?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,803
    Likes Received:
    1,898
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice