How to download the cpanel mail back up
To download a backup of your cPanel mail account, you can follow these steps:
Method 1: Using cPanel
- Log in to your cPanel account.
- Click on the "Files" section.
- Click on the "Backup" icon.
- Click on the "Download a Home Directory Backup" button.
- Select the backup type: "Full Backup" or "Partial Backup" (depending on your needs).
- Choose the backup format: "tar.gz" or "zip".
- Click the "Download" button to download the backup file.
Method 2: Using the cPanel API
- Log in to your cPanel account.
- Go to the "Advanced" section.
- Click on the "API" icon.
- Click on the "Get a Token" button.
- Enter a token name and click the "Generate" button.
- Copy the API token.
- Use a tool like
curl
or a programming language like PHP to download the backup using the cPanel API. For example:curl -X GET \ https://yourdomain.com:2087/cpanel/json-api/cpbackup?api_token=YOUR_API_TOKEN \ -H 'Content-Type: application/json' \ -o backup.tar.gz
Replace
YOUR_API_TOKEN
with the API token you generated earlier.
Method 3: Using a third-party tool
- Install a third-party tool like
cpanel-backup
orcpanel-restore
on your local machine. - Run the tool with the following command:
cpanel-backup -u yourusername -p yourpassword -d yourdomain.com -f backup.tar.gz
Replace
yourusername
,yourpassword
, andyourdomain.com
with your actual cPanel credentials and domain name.
Note: Make sure to replace backup.tar.gz
with the desired backup file name and format.
After downloading the backup file, you can restore your mail account by uploading the backup file to your cPanel account using the "Upload" feature in the "Files" section.