Restore Cpanel Backup From Other Server Using SSH

Operating System & Version
CentOS v7.9.2009
cPanel & WHM Version
cPanel & WHM v102.0.26 (STANDARD)

mujahidfarooq

Registered
Jan 22, 2023
1
0
1
Pakistan
cPanel Access Level
Root Administrator
Hello guys!

I have a new server "N" and old Server "O". I mistakenly terminated my cpanel account but I have backup that I am unable to restore to my O server because of low diskspace.
I want to restore data from server O to server N using SSH something like

/scripts/restorepkr/ [email protected] /backup/cpbackup/daily/username.tar.gz

Is there anyway to restore backup from O server to N using SSH ?

Thanks in advance.

Regards,
Mujahid Farooq
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
15,235
2,423
363
cPanel Access Level
Root Administrator
Hey there! Sure - you'd want to do the following:

-On the Source, run
Code:
/scripts/pkgacct username
to create the account backup
-Transfer that file from the Source to the Destination with a tool like rsync
-On the Destination machine, run
Code:
/scripts/restorepkg
to restore the package you've moved over.