openpanel/integrations/cpanel-import
2024-10-15 10:31:18 +02:00
..
mysql Auto-commit on 2024-10-15 10:31:15 by pcx3 2024-10-15 10:31:18 +02:00
templates Auto-commit on 2024-10-15 10:31:15 by pcx3 2024-10-15 10:31:18 +02:00
cp-import.sh Auto-commit on 2024-10-15 10:31:15 by pcx3 2024-10-15 10:31:18 +02:00
cpanel_import.py Auto-commit on 2024-10-15 10:31:15 by pcx3 2024-10-15 10:31:18 +02:00
README.md Auto-commit on 2024-10-15 10:31:15 by pcx3 2024-10-15 10:31:18 +02:00

cPanel 2 OpenPanel user import

Free OpenPanel module to import cPanel backup in OpenPanel

Maintained by CodeWithJuber

Features

Currently suported for import:

  • files and folders
  • mysql databases, users and grants
  • domains
  • dns zones
  • php version
  • wp sites
  • cronjobs

todo:

  • ftp accounts
  • email accounts
  • nodejs/python apps
  • postgresql
  • ssh keys
  • ssl certificates

Steps:

cPanel to OpenPanel Migration Script

This script automates the process of migrating a cPanel backup to OpenPanel server. It handles various cPanel backup formats and restores essential components of the user's account.

Features

  • Supports multiple cPanel backup formats (cpmove, full backup, tar.gz, tgz, tar, zip)
  • Restores user account details, domains, and hosting plan settings
  • Migrates websites, databases, domains, SSL certificates, and DNS zones
  • Handles PHP version settings and cron jobs
  • Restores SSH access and file permissions

Usage

  1. Run the script with sudo privileges:
git clone https://github.com/stefanpejcic/cPanel-to-OpenPanel
bash cPanel-to-OpenPanel/cp-import.sh --backup-location /path/to/cpanel_backup.file --plan-name "default_plan_nginx"

Parameters

  • --backup-location: Path to the cPanel backup file (required)
  • --plan-name: Name of the hosting plan in OpenPanel (required)

Important Notes

  • This script should be run on the OpenPanel server where you want to import the cPanel backup.
  • The script requires internet access to install dependencies if they are not already present.
  • Large backups may take a considerable amount of time to process.
  • Some manual configuration may be required after the migration, depending on the complexity of the cPanel account.

Troubleshooting

If you encounter any issues:

  1. Check the script's output for error messages.
  2. Verify that all prerequisites are met.
  3. Ensure you have sufficient disk space and system resources.
  4. Check the OpenPanel logs for any additional error information.

Contributing

Contributions to improve the script are welcome. Please feel free to submit issues or pull requests.

License

MIT License

Disclaimer

This script is provided as-is, without any guarantees. Always test thoroughly in a non-production environment before using in production.