CPanel Restore Script Deleting Home Directory and Failed To restore Data

edited July 2019 in FTP Server
Hi, I am having an issue in restoring Cpanel backup using The new Cpanel restore script provided by Cyberpanel's New Update. It ended with an error and also deleting hole home directory with it.

Here what I did.

I spin up a VPS on Hatzner with Centos 7.
I logged via SSh and installed Cyberpanel With All Modules.
After Installing Cyber panel I created a folder /home/backup

[[email protected] ~]# cd /home/
[[email protected] home]# ls
cyberpanel docker vmail
[[email protected] home]# mkdir backup

I copied a Cpanel Backup To that newly created folder via scp.

scp -i .\Master .\backup-7.3.2019_12-52-02_xxxxxxxxx.tar.gz [email protected]:/home/backup/

[[email protected] home]# python /usr/local/CyberCP/plogical/ --path /home/backup/
Backup logs to be generated in /home/cyberpanel/9205
Extracting main cPanel archive file: /home/backup//backup-7.3.2019_12-52-02_xxxxxx.tar.gz

/home/backup//backup-7.3.2019_12-52-02_xxxxxx.tar.gz successfully extracted.

Creating main account from archive file: /home/backup//backup-7.3.2019_12-52-02_xxxxxx.tar.gz

Failed to create main website from backup file /home/backup//backup-7.3.2019_12-52-02_xxxxx.tar.gz, error message: [Errno 2] No such file or directory: '/home/backup/backup-7.3.2019_12-52-02_xxxx/userdata/main'.

[[email protected] home]# ls
[[email protected] home]# cd ..
[[email protected] /]# ls
bin dev home lib64 media opt proc run srv tmp var
boot etc lib lost+found mnt privkey.pem root sbin sys usr webadmin.csr
[[email protected] /]# cd home/
[[email protected] home]# ls
[[email protected] home]# ls
[[email protected] home]# ls

As you have seen, It failed to restore and also Deleted all contents From Home Directory. Please do something With it. It is a serious bug. and should be fixed Immediately.


Sign In or Register to comment.
CyberPanel Discord

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!