Control Web Panel

WebPanel => Information => Topic started by: hazhayder on April 07, 2016, 05:44:07 PM

Title: Transfering CWP from one server to another
Post by: hazhayder on April 07, 2016, 05:44:07 PM
Hello, how can i take backup of all accounts on the server and import it on another installation of centos-webpanel
?
is that possible ?
if yes then please tell me the steps
Title: Re: Transfering CWP from one server to another
Post by: MyBuddyBen on April 11, 2016, 02:33:32 PM
It is possible, I've done it.
There were elements that didn't get transferred though. For example I had inkscape installed on the old server, and it didn't install correctly on the new one.

But what you'll want to do is simply two things.
1) rSync from old to new server everything but a couple of directories. You will need /var/vmail/, /home for sure
2) MYSQLDUMP ALL databases, then import them on the new server. (http://stackoverflow.com/questions/9497869/export-and-import-all-mysql-databases-at-one-time)

Administrator here on forums can explain better.
Title: Re: Transfering CWP from one server to another
Post by: hazhayder on August 02, 2016, 08:12:25 AM
It is possible, I've done it.
There were elements that didn't get transferred though. For example I had inkscape installed on the old server, and it didn't install correctly on the new one.

But what you'll want to do is simply two things.
1) rSync from old to new server everything but a couple of directories. You will need /var/vmail/, /home for sure
2) MYSQLDUMP ALL databases, then import them on the new server. (http://stackoverflow.com/questions/9497869/export-and-import-all-mysql-databases-at-one-time)

Administrator here on forums can explain better.
Can you send me all command which i should execute ?
Thanks
Title: Re: Transfering CWP from one server to another
Post by: Neo2SHYAlien on August 02, 2016, 06:31:44 PM
It is possible, I've done it.
There were elements that didn't get transferred though. For example I had inkscape installed on the old server, and it didn't install correctly on the new one.

But what you'll want to do is simply two things.
1) rSync from old to new server everything but a couple of directories. You will need /var/vmail/, /home for sure
2) MYSQLDUMP ALL databases, then import them on the new server. (http://stackoverflow.com/questions/9497869/export-and-import-all-mysql-databases-at-one-time)

Administrator here on forums can explain better.
Can you send me all command which i should execute ?
Thanks

Will be a lot easier to do rsync / with exclude /proc /dev /sys.