cPanel allows you to backup and restore cPanel accounts with shell commands. We will show in this post the commands you need to use.
To backup a single cPanel account:
- Login on your server as root via SSH
- Run the command:
/scripts/pkgacct user
- 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:
- Login on your server as root via SSH
- 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.