Skip to main content

Email recovery on different WHM host

Comments

4 comments

  • dalem
    recreate the deleted email accounts as they were & rsync the mail from the backup
    0
  • doulos61
    Would that command line basically be? - rsync -avHz /source/path/mailbackup/ /target/path/mail/
    0
  • MilesWeb
    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
  • cPanelMichael
    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.