Recover accidently deleted email account

sinternational

Registered
Feb 20, 2013
3
0
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
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,201
363
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.
 

sinternational

Registered
Feb 20, 2013
3
0
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
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,201
363
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.