Take Individual cPanel account backup using SSH command

To backup a single cPanel account:

  1. Login on your server as root via SSH
  2. Run the command :
    /scripts/pkgacct user
  3. By default, the backup file (cpmove-user.tar.gz) will be created in the /home directory.

To restore a single cPanel account backup/cpmove file:

  1. Login on your server as root via SSH
  2. Run the command :
    /scripts/restorepkg user

    or

    /scripts/restorepkg path-to-backup-fle
  3. To run the command with the user value, you must be in the same directory with the archive file.
You can also use the WHM interface to restore backups. Check our KB article: How to restore cPanel accounts in WHM

For more details about the pkgacct and restorepkg scripts use:

/scripts/pkgacct --help

and

/scripts/restorepkg --help

Rate This Article

(2 out of 4 people found this article helpful)