#!/bin/bash
# Generate full cPanel backup via command line (run as root)
/scripts/pkgacct USERNAME
# Backup will be stored in /home/cpmove-USERNAME.tar.gz
# For entire server migration using WHM backup:
/usr/local/cpanel/bin/backup --force
# Configure backup destination in WHM > Backup > Backup Configuration
These methods leverage cPanel's internal consistency checks to maintain symbolic links, database grants, and email filters during transfer. After uploading the generated backup file to your new VPS with cPanel, use WHM's `Restore a Full Backup/cpmove File` tool for automatic extraction and configuration. For non-cPanel destinations, third-party tools like `JetBackup` can convert cPanel backups into standard formats, though manual database and file transfers remain fallback options when native tools aren't available.
This is a public discussion. Create a free account to answer. Takes 20 seconds. No email gates.