Skip to main content

How to migrate to a new server?

Posted by gb_delti on Fri, 03/13/2009

Hello,

I have an older PBXManager Installation (6.0.1.50), installed from an ISO and upgraded to 6.0.1.70. Now I would like to set up a new server from the current ISO, but keep my current configuration. which files do I need to copy? Is it just the /etc/asterisk dir or is it more?


Submitted by eeman on Fri, 03/13/2009 Permalink

make sure both boxes are on same pbx manager version. then migrate over

/etc/asterisk

/etc/webmin

/var/spool/asterisk

/var/lib/asterisk/sounds/ogm

/var/lib/asterisk/moh

mysql db

phone provisioning directory

in fact the easiest way to do this is

1. manually create a .tar.gz backup from within pbx manager and select voicemail and recordings

2. go into webmin under Backup Configuration Files and select the modules you want to preserve data for

3. make sure to select Webmin Configuration and Webmin Users

4. the line that says Include in backup - check all three boxes

5. put the full path to your phone provisioning directory inside the textarea.

6. type full path and name.tar.gz for this archive in the 'Backup destination' field and click 'Backup Now'

7. Under the Mysql area of webmin select backup databases

8. in the Other Backup Options section make sure 'add drop table' statements is set to yes

9. click Backup Now

10. move your two backup archives and your mysql.sql and asteriskcdrdb.sql database files over to new machine

11. from the / top directory untar (tar -zxvf filename.tar.gz) your archive files

12. recover the root mysql password (see another thread) and install your mysql databases

mysql -uroot -prootpw mysql < mysql.sql

mysql -uroot -prootpw asteriskcdrdb < asteriskcdrdb.sql

that should do it

Submitted by eeman on Fri, 03/13/2009 Permalink

please note this will copy over the previous license file so make sure you retained the license key to re-apply before doing this procedure. Upon completion, re-apply the license key

Submitted by virtuworks on Tue, 07/17/2012 Permalink

Is this the same process for MTE? I am running Asterisk 1.8.7.1

Submitted by rfrantik on Sun, 07/29/2012 Permalink

This thread is basically talking about changing the hardware... old hardware and new hardware should be running roughly the same version of the operating system and the exact same version of Asterisk and MTE... If you are in the mood to upgrade Asterisk or MTE do it before or after moving to the new server... not during.

If you get properly prepared, this migration can be done quickly. We recently upgraded the hardware on one of our MTE produtction servers with about 20 minutes of down-time.

Yes, these instructions should work well for MTE.

Good luck.