Auto import cPanel sites to CyberPanel

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:

/usr/local/CyberCP/bin/python /usr/local/CyberCP/plogical/ --path /path/to/files

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.

cat /log/file | grep Failed

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/ --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:
> Finding PHP version for
> PHP version of is PHP 7.4.
> Finding Server Admin email for
> Server Admin email for is
> Calling core to create
> Websites matching query does not exist.
> Failed to create main site 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

please help

what is output of cat /home/cyberpanel/3684

1 Like

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

What backup type does it support? Does it also support Jetbackup backup files? Thanks

Does this work with cp-move backup method?

Does it need to be compressed? Is incremental backup okay?

The autoimport does not start.

Backup logs to be generated in /home/cyberpanel/8686

nothing is generated, the log files does not exist.