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.

Recover accidently deleted email account

Discussion in 'E-mail Discussions' started by sinternational, Feb 20, 2013.

  1. sinternational

    sinternational Registered

    Joined:
    Feb 20, 2013
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    Hi There
    I accidently deleted one of my email accounts.

    My hosting company have sent me a backup (.tar.gz file) - pre my deletion mistake. But I want to know and help on the following:

    Can I backup my existing email domain, load up the old backup, as I want to check just one email account, then restore my latest backup.

    Sorry if that sounds confusing.

    Thanks for your help in advance.

    ddmail.tar.gz
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

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

    You could simply create the email account again, and then extract the data from the backup archive and manually move it into place. The following thread has a document that explains where email data is stored:

    Manual Migrations

    Thank you.
     
  3. sinternational

    sinternational Registered

    Joined:
    Feb 20, 2013
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    Hi
    I am not very technical but her goes.

    I will create a new email account with the same name as the one I deleted. I can do that.

    Then from my backup how would I know what files I need to transfer to this new email account. I have the backup that my hosting company sent to me in the .tar.gz file format which I extracted using 7-zip. But do know where the specific email account is.

    Once I know what files to transfer then do I just drop them into the right place in cPanel file manager?

    Thanks for you help
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,734
    Likes Received:
    661
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    I suggest using FTP instead of File Manager if you want to upload multiple files at the same time. The following directory will exist after you create the email account:

    Code:
    # /home/$username/mail/$domain.com/$email-username/
    The "$username" entry represents the username of the account. The "$email-username" entry represents the email account username. Move the contents of this location from the backup to this location on the live account. The backup will have this data in:

    cpmove-$username/mail

    Note: You may also have to extract the homedir.tar file within the archive before the "mail" directory exists.

    Thank you.
     
Loading...

Share This Page