Email recovery on different WHM host
Greetings -
I know this can be done just trying to thinking there is someone more experienced in an effective manner in which to do it.
A client recently deleted all their email on the server. This is for a legal firm so I was asked to make the best efforts to restore the data. Since all I have is the entire container backed up, I had to restore the backup to a different server due to space issues. I have extracted the old home folder to a location on the second server.
My thinking is that I can create an email account on one of the hosted domains on the second server, set the permissions to the extracted email for the account that was just created, move the email data to proper mail hierarchy and then try to access the email.
If successful at that point either I or the client can retrieve the data.
Also, if it would suit it better, I could always compress the extracted email data, upload it to the original host, extract it there and then place it back in its original location... just a though.
I would appreciate the input, directions or suggestions.
Please assist
Thanks
Shoop
-
recreate the deleted email accounts as they were & rsync the mail from the backup 0 -
Would that command line basically be? - rsync -avHz /source/path/mailbackup/ /target/path/mail/ 0 -
If you have the backup of etc and mail folder there won't be a need to re create the email accounts. Sync these 2 folders and the data will be restored. As you have extracted the backup on other server the command will be as below. This command needs to be executed on the server where the backup is extracted. rsync -va -e "ssh -p 22" /source/path/mailbackup/etc root@server-ip:/home/cPanel-username/ rsync -va -e "ssh -p 22" /source/path/mailbackup/mail root@server-ip:/home/cPanel-username/ Correct the ownership & this should be it. 0 -
Hello :) Yes, manually moving the data back into place in the "etc" and "mail" directories will restore the email accounts. Ensure you update the ownership values and run the following command: /scripts/mailperm $username
Thank you.0
Please sign in to leave a comment.
Comments
4 comments