cPanel Backup Restoration Stuck with Message Restoring Backup

When a backup restoration in cPanel goes wrong, it can get be aborted or have the process killed but still show restoring backup in the restoration queue.

This is causing by the backup restore manager still having the job in the queue.

To resolve this and flush the backup queue start by killing the backup process or attempting to abort it in WHM.

Once this is done use the following steps to empty the backup queue.

rm /var/cpanel/backups/queue/restore_queue.stor

Once the restore queue has been removed, you can update the restore manager with the following command:

/usr/local/cpanel/bin/backup_restore_manager state