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 manually resend notification to user whose disk quota has exceeded on cPanel server?

There are always instances on the cPanel server where some clients want to temporarily increase...

How to get backup data recursively from the Amazon server?

There may be a situation where you do not have a zip utility on Amazon server so, the backup...

How to to know SSH port on the cPanel server?

Steps to know SSH port of cPanel server -1. Login to WHM with your login details. 2. Go to...

How to install MALDET Linux Malware Detect on cPanel Server?

Maldet is a malware detector and scanner for Linux based servers a project designed by R-fx...

This webpage is not found - Cannot export database

While exporting the database zip file from cPanel >> phpMyAdmin as well from SSH, I was...

Powered by WHMCompleteSolution