v1.8.5 and aboves provides you with utility to automatically import cPanel accounts to CyberPanel. To use this feature you need to download/upload backups to your server in any location such as /home/backup.
Once backups are downloaded execute this command to restore them:
This is not the path of a certain backup file, it is a path of folder which contain cPanel .tar.gz files. All cPanel backups files will be restored found in the given path.
Debugging restore issues
When you start the restore action, first thing it will do is output the log file. Now if something goes wrong you can use that file to see what have gone wrong.
hello, ive tried to restore a cpanel backup using the py command and this is what i received from the log file:
> root@cronuswo-eu:/# /usr/local/CyberCP/bin/python /usr/local/CyberCP/plogical/cPanelImporter.py --path /home/backup
>
> Backup logs to be generated in /home/cyberpanel/3684
> cronusw0
> root@cronuswo-eu:/#
> root@cronuswo-eu:/# cat /home/cyberpanel/3684Extracting main cPanel archive file: /home/backup/cpmove-cronuswo.tar.gz
> /home/backup/cpmove-cronuswo.tar.gz successfully extracted.
> Creating main account from archive file: /home/backup/cpmove-cronuswo.tar.gz
> Detected main domain for this file is: domain.com.
> Finding PHP version for domain.com.
> PHP version of domain.com is PHP 7.4.
> Finding Server Admin email for domain.com.
> Server Admin email for domain.com is webmaster@domain.com.
> Calling core to create domain.com.
> Websites matching query does not exist.
> Failed to create main site domain.com from archive file: /home/backup/cpmove-cronuswo.tar.gz
ive restored a previous backup once and it worked and there are websites, domains and databases already created
this backup is newer and im restoring again but im getting a failed for some reason
all figured out
the script couldnt auto import but when i removed all the domains, websites, databases it started importing no problem
it just doesnt work when there is already stuff there