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.

Backup and delete emails from server

Discussion in 'E-mail Discussions' started by TLinger, Sep 25, 2015.

  1. TLinger

    TLinger Member

    Joined:
    Sep 15, 2015
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Orlando, Florida, USA
    cPanel Access Level:
    Website Owner
    Hello,

    How can I backup and delete emails via cPanel? The storage capacity for my cPanel account is nearing its limit. Most of this is emails. When I try to compress a folder and download it it only compresses and downloads the folder itself, not the files within the folder. If I select all the files in the mail > cur directory and click compress it seems to compress each file individually. If I select all the files and click download it tries to download all the files individually and freezes my computer up with download dialog boxes. I'm out of ideas on things to try.
     
  2. 24x7server

    24x7server Well-Known Member

    Joined:
    Apr 17, 2013
    Messages:
    1,146
    Likes Received:
    34
    Trophy Points:
    48
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Hello,

    I think when you trying to compress your mail folder that process is not getting complete and due to that you are getting that issues with compress task. Compress process will take some time because there are lot of files in mail directory.

    if you getting same issues then you need to contact your hosting support team to make a tar file of your mail directory.
     
  3. Jcats

    Jcats Well-Known Member

    Joined:
    May 25, 2011
    Messages:
    275
    Likes Received:
    31
    Trophy Points:
    28
    Location:
    New Jersey
    cPanel Access Level:
    DataCenter Provider
    Do they give you SSH access? If so, you can run:

    # cd ~ ; tar -cvf DOMAIN-mail.tar mail/DOMAIN.com/USER/cur

    Make sure to replace DOMAIN and USER(email without @domain). This will not use compression so the process will use less CPU which should reduce the chance the process gets killed off. That will make a file called

    DOMAIN-mail.tar

    in the root of the account so in the folder before 'public_html', you can then download it using FTP/File Manager.
     
  4. TLinger

    TLinger Member

    Joined:
    Sep 15, 2015
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Orlando, Florida, USA
    cPanel Access Level:
    Website Owner
    I just tried to make a regular tar (not compression afaik) of a folder with only a few files in it. It still only put the folder in the tar file. It shows results instantly, so I don't think its a timeout issue. Also, the folders themselves show that they are only 15-30kb in size even though they contain files that are much larger. Thank you for the help! I will try contacting our hosting provider.
     
  5. TLinger

    TLinger Member

    Joined:
    Sep 15, 2015
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Orlando, Florida, USA
    cPanel Access Level:
    Website Owner
    Sorry, bytes not kilobytes.
     
  6. Jcats

    Jcats Well-Known Member

    Joined:
    May 25, 2011
    Messages:
    275
    Likes Received:
    31
    Trophy Points:
    28
    Location:
    New Jersey
    cPanel Access Level:
    DataCenter Provider
    That might be your best bet sorry :(
     
  7. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

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

    You can backup the mail folder via SSH via the "zip" command, download the zip archive, and then delete/re-create the email accounts. You may want to handle the compression on your local machine instead of on the server, or consult with your hosting provider for assistance.

    Thank you.
     
Loading...

Share This Page