CyberHosting

CPanel Restore Script Deleting Home Directory and Failed To restore Data

edited July 4 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

[root@mail-server ~]# cd /home/
[root@mail-server home]# ls
cyberpanel docker vmail
[root@mail-server 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 root@116.203.xxx.xxx:/home/backup/


[root@mail-server home]# python /usr/local/CyberCP/plogical/cPanelImporter.py --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'.

[root@mail-server home]# ls
[root@mail-server home]# cd ..
[root@mail-server /]# 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
[root@mail-server /]# cd home/
[root@mail-server home]# ls
[root@mail-server home]# ls
[root@mail-server 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.

Comments

Sign In or Register to comment.
CyberHosting CyberPanel Discord

Howdy, Stranger!

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

In this Discussion