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.

How to restore a specific mail box on the domain from a cpanel backup

Discussion in 'E-mail Discussions' started by techni, Jun 22, 2012.

  1. techni

    techni Member

    Joined:
    Jun 22, 2012
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Accidently deleted mail box of an email account , how can we retrieve that specific mail box of a email account as we have the daily backup from cpanel without disturbing the existing mails
    Please let me know how to retrieve it
     
  2. NixTree

    NixTree Well-Known Member

    Joined:
    Aug 19, 2010
    Messages:
    386
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Gods Own Country
    cPanel Access Level:
    Root Administrator
    Hello,

    Try the following steps,

    1. Extract the backup of the particular user and cd to the extracted folder ( tar -xvzf cpmove-user.tar.gz )

    2. There you can see a homedir.tar file; now untar it ( tar -xvf homedir.tar )

    3. When untar is over, you can see a "mail" directory.

    4. switch to it and you can see the domain.com directory; cd to it and list the files / directroies

    5. Now you can see your mail user's email box. Copy it and paste it to /home/user/mail/domain/.com/

    6. Make sue a symlink is created /home/user/mail/ to that email folder. You can refer other email account and see those symlinks for reference.

    6. Try to send a test mail.

    7. Done!

    Thank you.
     
  3. techni

    techni Member

    Joined:
    Jun 22, 2012
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hello

    Let me just check as you posted and come back as domain is sizing around 40GB
     
Loading...

Share This Page