Need to back up a single cPanel account for migration or restoration? You can use the pkgacct
script to generate a cPanel package, making the transfer process smooth and efficient.
Step 1: Generate a cPanel Backup Package
Run the following command via SSH as the root user to create a full cPanel backup for a specific account:
/scripts/pkgacct username
Replace username
with the actual cPanel account username.
Step 2: Move Backup File to User’s Home Directory
By default, the backup is saved in /home
as cpmove-username.tar.gz
. To allow the user to download it, move the file to their home directory:
mv cpmove-username /home/username
Step 3: Set Correct Ownership
Ensure the user has the correct permissions to access and download the backup:
chown username:username /home/username/cpmove-username
Downloading the Backup
Once moved to the user’s home directory, the backup can be downloaded via FTP, cPanel File Manager, or SSH.
Restoring the Backup on a New Server
To restore the cPanel account on another server, transfer the backup file and run:
/scripts/restorepkg username
Need Assistance?
If you need help with cPanel account backups or server migrations, UnderHost’s 24/7 expert support is here to assist. Contact us via @CustomerPanel.