Auto import cPanel sites to CyberPanel

You are here:
< Back

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/cPanelImporter.py --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

 

Then you can share your results with us on CyberPanel forums.

Author's page
Cyber Panel

Comments

  • Raisul Mushfeq January 4, 2020 at 9:41 am

    If anyone is having trouble restoring with /usr/local/CyberCP/bin/python2 /usr/local/CyberCP/plogical/cPanelImporter.py –path /path/to/files on the new version, try replacing python2 with python3 and it should work.

    Reply
    • Cyber Panel January 6, 2020 at 7:08 am

      Thank you, I’ve updated the documentation.

      Reply
      • Svijany January 7, 2020 at 7:10 pm

        Think it’s python without any number in your docs now…

        Reply
        • Cyber Panel January 14, 2020 at 4:38 pm

          Yes, you can use -> /usr/local/CyberCP/bin/python

          Reply
Leave a Reply