Restore a cPanel full backup on CentOS to Ubntu

Posted November 10, 2013 6.1k views
I have a full backup of my web site done on CentOS with cPanel. The backup contain a vBulletin forum which mean there is a MySQL DB in it too. I am migrating to a Ubuntu server and I want to restore the site from this cPanel backup to it. How I restore such backup to a Ubuntu server and how I reconnect the DB?
1 comment
  • hi,
    I would like to take a incremental backup on centos server in schedule time and data will be store in NAS server can you please give any one help for this

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
4 answers
Have you confirmed that cPanel can run on Ubuntu? Last I heard (which was a loooong time ago), cPanel could only run on CentOS.
I am not going to run cPanel on Ubuntu. The backup was made on cPanel but it is nothing but .tar.gz file which contain the structure of the web site.
cPanel still does not support Ubuntu.

@kylebr: Since it's basically your website's files and database dump, you can set up a droplet from scratch and then transfer the files to it. See
by Etel Sverdlov
This article covers the process required to transfer MySQL data between two servers. This tutorial includes steps on how to perform a MySQL dump, transfer the database with SCP, and then reimport it on the second server.

If you already have the cpanel backup tar.gz file it’s pretty straightforward. You can do it ll via a nice gui web interface using VirtualMin’s migrate virtual server function.

1) Install virtualmin (note you may need to install wget with “yum install wget”)

2) Go to your new webmin install via your browser - [domain or ip]:10000

3) In the search bar at the bottom of the menu type: migrate virtual

4) Click on the migrate virtual server link and follow these instructions.,virtualmin_for_cpanel_users/#copying_the_cpanel_backup_to_your_virtualmin_server

I ran into trouble when I tried to have it automatically work out the user/password so give it a user/password and it should work fine.