mirror of
https://github.com/stefanpejcic/openpanel
synced 2025-06-26 18:28:26 +00:00
87 lines
2.3 KiB
Markdown
87 lines
2.3 KiB
Markdown
# cPanel 2 OpenPanel user import
|
|
Free OpenPanel module to import cPanel backup in OpenPanel
|
|
|
|
Maintained by [CodeWithJuber](https://github.com/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](LICENSE)
|
|
|
|
## Disclaimer
|
|
|
|
This script is provided as-is, without any guarantees. Always test thoroughly in a non-production environment before using in production.
|