Page 1 of 1

How to backup and restore cPanel accounts via command line

Posted: Tue Sep 22, 2020 6:44 pm
by Jackk
Hello Nixtree,

How to backup and restore cPanel accounts via command line?

Re: How to backup and restore cPanel accounts via command line

Posted: Tue Sep 22, 2020 6:59 pm
by Tommy
Hello Jackk,


* To create a backup of individual cPanel account on the command line please follow the below steps

Step1 - Login to SSH as the root user
Step2 - Enter the below command on the commandline interface

/scripts/pkgacct username

step3 - A backup of your account will be created and stored in the directory you are currently in.



*To restore the cPanel backup

Step1 - Login to SSH as the root user
Step2 - To restore your cPanel account, enter the following command into the commandline

/scripts/restorepkg username

Note: Inorder to restore your data you must be in the correct directory that containing your backup