cPanel/WHM Backup

Connect your cPanel/WHM servers directly to LOX and automate backups for all your accounts, websites, and databases.

v1.0.0Business+Updated 2026-01-01

Business Plan Required

Hosting Panel integration is available on Business ($99/mo) and Enterprise ($299/mo) plans.Compare plans →

Direct Integration

Add your WHM server in the LOX dashboard. No agents to install, no Docker containers. LOX connects directly via WHM API.

How It Works

Your WHM Server

server.example.com:2087

LOX Platform

Automatic backups

Secure Storage

Encrypted & immutable

Features

All Accounts

Backup all cPanel accounts on the server or select specific ones.

MySQL Databases

All databases for each account included automatically.

Email & Forwarders

Email accounts, forwarders, and autoresponders included.

Full Account Backup

Home directory, SSL certs, cron jobs, DNS zones.

Quick Start

1. Generate API Token in WHM

  1. 1. Log into WHM as root
  2. 2. Go to DevelopmentManage API Tokens
  3. 3. Click Generate Token
  4. 4. Name it "LOX Backup"
  5. 5. Copy the generated token

API Token Security

API tokens are more secure than passwords. They don't expire and can be revoked individually. Never share your token.

2. Add Panel in LOX Dashboard

  1. 1. Go to Dashboard → Hosting Panels
  2. 2. Click Add Panel
  3. 3. Select cPanel/WHM as panel type
  4. 4. Enter server hostname (port defaults to 2087)
  5. 5. Paste your API token
  6. 6. Click Test Connection
  7. 7. Save the configuration

Done!

LOX will discover all cPanel accounts and start backing them up according to your schedule.

What Gets Backed Up

Home directory
MySQL DBs
Email accounts
DNS zones
SSL certificates
Cron jobs
FTP accounts
Apache config

Configuration Options

OptionDescriptionDefault
Include DatabasesBackup MySQL databasesYes
Include EmailBackup email accountsYes
Include LogsBackup access/error logsNo
Account FilterBackup specific accounts onlyAll accounts

API Reference

# Add a cPanel/WHM server
curl -X POST https://backlox.com/api/v1/hosting-panels \
  -H "Authorization: Bearer $LOX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "My WHM Server",
    "panel_type": "cpanel",
    "host": "server.example.com",
    "port": 2087,
    "username": "root",
    "api_key": "your-whm-api-token",
    "include_databases": true,
    "include_mail": true
  }'

# List all cPanel accounts
curl https://backlox.com/api/v1/hosting-panels/{panel_id}/domains \
  -H "Authorization: Bearer $LOX_API_KEY"

# Trigger backup for an account
curl -X POST https://backlox.com/api/v1/hosting-panels/{panel_id}/backup/username \
  -H "Authorization: Bearer $LOX_API_KEY"

Troubleshooting

Connection refused

Ensure port 2087 is accessible. Check your firewall allows connections from LOX IP ranges.

Authentication failed

Verify your API token is correct and was created by root. Tokens are case-sensitive.

Some accounts not backing up

Suspended accounts are skipped by default. Check the account filter settings if specific accounts are missing.