Accéder au contenu principal

Articles

Affichage des articles du avril, 2020

How to backup/restore a single cPanel account via SSH

https://www.plothost.com/kb/backup-restore-cpanel-account-ssh/ 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 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 ========== Example for creating a cpmove file