How to backup and restore cPanel accounts via command line

Discussions related with hosting control panels used, which include cPanel, Plesk, Directadmin etc..

Moderator: Staff

Post Reply
Jackk
Posts: 0
Joined: Fri Apr 13, 2018 7:18 pm

How to backup and restore cPanel accounts via command line

Post by Jackk »

Hello Nixtree,

How to backup and restore cPanel accounts via command line?


Tommy
Posts: 0
Joined: Wed Sep 09, 2020 12:10 pm

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

Post 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


If you are looking for assistance in server management, please get in touch with our support.
Post Reply