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
- 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:
- Check the script's output for error messages.
- Verify that all prerequisites are met.
- Ensure you have sufficient disk space and system resources.
- 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.