You can use following commands ;
/scripts/restorepkg username username.tar.gz
/scripts/restorepkg username backup-9.25.2005_17-46-10_username.tar.gz
of course you will need to write your exact username of account that you want to restore :)
Restoring a cpanel backup using WHM or SSH (http://forums.hscripts.com/viewtopic.php?t=1774#p2590) (https://www.abibitumikasa.com/proxy.php?request=http%3A%2F%2Fforums.hscripts.com%2Fstyles%2Fprosilver%2Fimageset%2Ficon_post_target.gif&hash=e4481d0d40f4a89ab752778655a000e83f1c75c8) (http://forums.hscripts.com/viewtopic.php?p=2590&sid=2423ed3cd511d012d910245b95a23f39#p2590)by hman (http://forums.hscripts.com/memberlist.php?mode=viewprofile&u=3&sid=2423ed3cd511d012d910245b95a23f39) on Fri Jul 27, 2007 9:15 am
Can we restore a cpanel backup? How to restore a cpanel backup ?
Yes! We can restore a cpanel backup using WHM or SSH.
Using WHM:
Copy you cpanel backup (*.tar.tz) file in to the VPS account under any of the following folders
/home, /usr/home, /web, /home2, /home3, /root, /usr
Login to WHM and Go to Backup > Restore a Full Backup/cpmove file
There you can see the list of tar,gz files.
Give the username of the account that has to be restored and select restore.
This will restore the complete backups...
Using SSH:
-Login to SSH
- use cmd "/scripts/restorepkg usename"
Note: For this you should have the restorepkg script under /scripts directory..