What was the worlds first search engine?
Today’s internet is mostly dependent on search engines. However, it all started with a much…
A cpmove file is the archive cPanel and WHM use to transfer or restore a hosting account, including its home directory, MySQL databases, email accounts, and DNS zone data. This guide covers what a cpmove file is, how to create one, how to restore from one using WHM or the command line, and how to fix the most common errors that come up during the process.
A cpmove file is a compressed archive (usually .tar.gz) generated by cPanel that contains a complete snapshot of a hosting account. It’s the format used internally by WHM’s account transfer, backup, and restore tools.
A typical cpmove archive includes:
Because it bundles everything needed to recreate an account, a CPMove file is what most admins use when migrating accounts between servers or restoring a full account after data loss.
A standard cPanel backup tarball (created via the “Backup” feature in cPanel) and a cpmove file contain similar data, but cpmove files follow a strict naming and structure convention that WHM’s restore tool expects. A renamed tarball won’t always restore cleanly unless it matches the required naming patterns below.
Naming and Location Requirements
WHM’s restore tool only recognizes archive files that match specific naming patterns and live in specific directories. If your file doesn’t meet both conditions, the restore will fail even if the file itself is valid.
Accepted filename formats:
cpmove-{USER}cpmove-{USER}.tarcpmove-{USER}.tar.gz{USER}.tar{USER}.tar.gzbackup-{MM.DD.YYYY}_{HH-MM-SS}_{USER}.tarbackup-{MM.DD.YYYY}_{HH-MM-SS}_{USER}.tar.gzAccepted directories:
/home/home2/home3/root/usr/usr/home/webIf your file is sitting anywhere else (like /tmp or a mounted backup drive), move or symlink it into one of these directories before attempting the restore.
Before you can restore an account, you usually need to generate the cpmove file in the first place, either on the same server (for a backup) or on the source server (for a migration).
Using WHM (GUI method):
/scripts/pkgacct username
This packages the specified account into a cpmove file and saves it to /home by default. Useful options include:
“Account already exists” or restore halts on a duplicate username
Re-run with –force, or remove/rename the existing account first via WHM’s account termination tool.
“Invalid archive” or “incompatible package” error
Usually means the file was packaged on a much newer or older cPanel version than the destination server, or the archive is corrupted/incomplete. Re-download or re-generate the cpmove file and verify its integrity with tar -tzf filename.tar.gz before retrying — this lists the archive contents without extracting, so a corrupted file will throw an error immediately.
Restore fails with a “file not found” error even though the file exists
Almost always, a naming or location issue. Double-check the filename matches one of the accepted patterns and that the file sits in one of the directories listed above.
Restore completes, but the website doesn’t load
Check that DNS/A records actually point to the new server and that the zone file was updated correctly during restore. This is the most common post-restore issue, especially with cross-server migrations.
Email or databases are missing after the restore
If –skiphomedir, –skipbwdata, or similar flags were used during either packaging or restore, some components may have been deliberately excluded. Re-run a full restore without skip flags if you need everything.
Restore is extremely slow or times out in the GUI
Large accounts (large home directories or huge mail stores) can exceed the WHM interface’s patience. Use the restorepkg command line method instead, it runs as a background process and isn’t subject to browser/session timeouts.
If you run into an error not covered here, or you’d rather have it handled for you, contact the bodHOST support team available 24×7 for account restore and migration assistance
Learn the more knowledge base about how to use WHM to remove the cPanel Accounts
Explore more hosting insights, tips and industry updates.
Today’s internet is mostly dependent on search engines. However, it all started with a much…
Do you keep getting the annoying “429 Too Many Requests” error message? There are too…
What is RAID? RAID Stands for Redundant Array of Independent Disks. It is a set…