I have a website running using CyberPanel on Google Cloud. I want to transfer it to Alibaba Cloud. It took a lot of effort to setup and get running the existing CyberPanel so I don’t want to do it again.
Is there any way to transfer my CyberPanel to Alibaba Cloud with all configurations and websites and everything?
Absolutely! Here’s the simple and straightforward way to move your entire CyberPanel setup (with all websites and configurations) from Google Cloud to Alibaba Cloud without reinstalling everything:
Step 1: Prepare your Alibaba Cloud server
- Create a new VPS/instance on Alibaba Cloud with a compatible OS (same or similar to Google Cloud server)
- Make sure you can SSH into it
Step 2: Backup your entire CyberPanel server on Google Cloud
- SSH into your Google Cloud server
- Create a full backup of CyberPanel including websites, databases, and configs
Run:
# Create a full archive of /home, /etc, /usr/local/CyberPanel and MySQL databases
tar czvf cyberpanel_backup_$(date +%F).tar.gz /home /etc /usr/local/CyberPanel
# Backup MySQL databases separately
mysqldump -u root -p --all-databases > alldb_backup.sql
Step 3: Transfer backups to Alibaba Cloud server
From your Alibaba Cloud server, run:
scp user@google-cloud-server:/path/to/cyberpanel_backup_YYYY-MM-DD.tar.gz /root/
scp user@google-cloud-server:/path/to/alldb_backup.sql /root/
Or use rsync
or any other file transfer method you prefer.
Step 4: Restore backups on Alibaba Cloud server
- SSH into Alibaba Cloud server
Run:
# Extract CyberPanel files
tar xzvf cyberpanel_backup_YYYY-MM-DD.tar.gz -C /
# Restore MySQL databases
mysql -u root -p < alldb_backup.sql
Step 5: Adjust server-specific configs and services
- Check and update network settings, IP addresses, and hostnames if needed
- Restart CyberPanel and related services:
systemctl restart lsws
systemctl restart mysql
systemctl restart cyberpanel
Step 6: Update DNS
- Point your domain DNS records to the new Alibaba Cloud server IP
Notes:
- Make sure Alibaba Cloud server has same software versions (PHP, MySQL, CyberPanel) or compatible ones
- This method basically clones your server onto the new one
- If CyberPanel is heavily customized, this will keep all configs and sites intact