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 email data from backup

Discussion in 'Data Protection' started by Elizabeta, Jun 6, 2018.

  1. Elizabeta

    Elizabeta Well-Known Member

    Joined:
    Mar 21, 2018
    Messages:
    57
    Likes Received:
    10
    Trophy Points:
    8
    Location:
    Mostar
    cPanel Access Level:
    Root Administrator
    Hello,

    What is recommended way to restore e-mails from e-mail adress which is assigned to cPanel account.
    Via WHM-Backup Restoration- choose account and Restore Mail Configuration?
    Or via command line?

    I have tried via WHM but Status is Pending

    upload_2018-6-6_14-59-31.png

    Best regards,
    Elizabeta
     
    #1 Elizabeta, Jun 6, 2018
    Last edited by a moderator: Jun 6, 2018
  2. Elizabeta

    Elizabeta Well-Known Member

    Joined:
    Mar 21, 2018
    Messages:
    57
    Likes Received:
    10
    Trophy Points:
    8
    Location:
    Mostar
    cPanel Access Level:
    Root Administrator
    Hello,

    Also I have manually copied (in command line) mail dir from backup to mail dir under account.

    cp -Rf /backup/2018-06-06/accounts/paneluser/homedir/mail/shop.panel.org/elizabeta /home/paneluser/mail/shop.panel.org

    But when I logged to cPanel (port 2083) under E-mail Accounts I do not see e-mail accounts from Restore.

    Best regards,
    Elizabeta
     
  3. cPanelLauren

    cPanelLauren Forums Analyst
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    1,387
    Likes Received:
    92
    Trophy Points:
    103
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hello,

    The account will remain in pending status until you click Restore:

    restore_pending.png

    But this is the best way to restore userdata like mail since it's not incuded in File Restoration.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. Elizabeta

    Elizabeta Well-Known Member

    Joined:
    Mar 21, 2018
    Messages:
    57
    Likes Received:
    10
    Trophy Points:
    8
    Location:
    Mostar
    cPanel Access Level:
    Root Administrator
    Thank you very much Lauren for explanation.

    I have some question,

    when I choose on WHM just option Restore Mail Configuration, I have noticed that be choosed another two option : Restore Subdomains and Restore MySql ( I have noticed that quota exceeded for user, Restore Trash under File Manager)

    Another question,

    When I doing Restore Mail Configuration from another date like day before, I do not see my new mails from today (on webmail)
    However, I see this message under /home/paneluser/mail/shop.panel.org/elizabeta/cur ?

    Best regards,
    Elizabeta
     
  5. cPanelLauren

    cPanelLauren Forums Analyst
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    1,387
    Likes Received:
    92
    Trophy Points:
    103
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @Elizabeta

    Can you clarify your questions here I'm not sure I'm following what you're asking and I want to ensure I'm giving you the correct advice.

    Thanks!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. Elizabeta

    Elizabeta Well-Known Member

    Joined:
    Mar 21, 2018
    Messages:
    57
    Likes Received:
    10
    Trophy Points:
    8
    Location:
    Mostar
    cPanel Access Level:
    Root Administrator
    Hello Lauren,

    Yes, offcourse.

    First question:
    If I go to WHM-Home-Backup Restoration- and only choose Restore Mail Configuration, it seems that the entire Restore is restored (all three options, Restore Subdomains, Restore Mail Configuration, Restore MySql). I have noticed that because the quota increases. I see in File Manager files that were once deleted from the Trash folder. Is it possible to choose only the Restore Mail Configuration?
     
  7. Elizabeta

    Elizabeta Well-Known Member

    Joined:
    Mar 21, 2018
    Messages:
    57
    Likes Received:
    10
    Trophy Points:
    8
    Location:
    Mostar
    cPanel Access Level:
    Root Administrator
    Second question:

    When I do a Restore Mail Configuration from ie. yesterday, Restore is done but I do not have new e-mails, for example I do not have e-mails from today, but there are in folder: /home/paneluser/mail/shop.panel.org/elizabeta/cur on command line? What is the best way to do Restore Mail but the new e-mails should stay, can I choose a different folder to place the Restore?

    Thanks in advance!

    Best regards,
    Elizabeta
     
  8. cPanelLauren

    cPanelLauren Forums Analyst
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    1,387
    Likes Received:
    92
    Trophy Points:
    103
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    This is because the full backup is restored regardless of this option. The option just allows you to disclude the mail configuration or include it in the backup restoration, this is not an option for just restoring mail.

    Are you indicating that the mail from today is present when you restore but not present in webmail? I wouldn't expect a backup restore to retain new data just restore data that existed previously. You could take the extracted backup and rsync only the mail data to your user but that would be involved, if you're unsure how to perform that task you might want to enlist the assistance of a system administrator. If you don't have one you might find one here: Resources | cPanel Forums

    Thanks!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. Elizabeta

    Elizabeta Well-Known Member

    Joined:
    Mar 21, 2018
    Messages:
    57
    Likes Received:
    10
    Trophy Points:
    8
    Location:
    Mostar
    cPanel Access Level:
    Root Administrator
    Hello,

    Thank you very much Lauren for your answer.

    Best regards,
    Elizabeta
     
  10. cPanelLauren

    cPanelLauren Forums Analyst
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    1,387
    Likes Received:
    92
    Trophy Points:
    103
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @Elizabeta

    You're most welcome and I'm glad I could help as always!

    Thanks!
     
    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