Failed: Account Restore Failed: “clean: Cannot cleanup top level directory:

While restoring the full cPanel backup file in 'tar.gz' format from
WHM >> Backup >> Restore a Full Backup/cpmove File, I was getting the error message as below -


Failed: Account Restore Failed:“clean: Cannot cleanup top level directory:
“/cpanelpkgrestore.TMP.work.3x9vXyS3”. at /usr/local/cpanel/Whostmgr/Transfers/ArchiveManager.pm line 668.
”Took the liberty to check the line 668
in ArchieveManager.pm and it corresponds to the following codes string:

Solution -

Please check the backup file location. It should be present under /home directory of the server. 

After moving the backup file, it worked for me. 

(In my case it was under temp directory of the server.)
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to reset SSH port back to default port 22?

In some situations most of us may come across a problem that we are able to log into the WHM but...

How to setup the root login alert notification email?

Its very important to keep a check on your servers and who logs into the server, From security...

How to enable Open SSL on WHM?

Before enabling open SSL, you can check whether it is already enabled on your server. Please fire...

How to install mod_pagespeed on WHM?

'mod_pagespeed' is module of Apache which is nothing but plugin which is used for compressing the...

How to enable Hot Link Protection in cPanel?

To avoid other sites to use your website's bandwidth, you can enable the hot link protection....

Powered by WHMCompleteSolution