Restorepkg is the command-line utility used to restore cPanel backups. Knowing how to use the restorepkg script allows you to restore cPanel backups without logging into WHM.
Restorepkg can restore a WHM-generated backup using either a username or a path to a backup file.
If you do not use the path to the backup file, a cPanel-generated backup must be located in one of the following directories:
Restorepkg will search the directories listed above for files matching the following patterns:
Additional information regarding this script can be found in the WHM documentation: