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.)

Leave a Comment

Your email address will not be published. Required fields are marked *

Open chat