Loading...
 

Migrating from Incredible PBX 2020 (CentOS) to Incredible PBX 2021 (Debian)


1. Build yourself a new Incredible PBX 2021 platform. We recommend the new Vultr image which only takes a couple minutes. If you’re migrating Incredible Fax as well, be sure to first install it on the new platform.

2. Make note of the IP addresses of your 2020 server (12.34.56.78 in example below) and 2021 server (23.45.67.89 in example below).

3. Whitelist the 2021 server on your 2020 server: /root/add-ip 2021pbx 23.45.67.89 then option 0

4a. On the 2020 platform without Incredible Fax, log in as root and issue the following commands:

fwconsole stop
mysqldump -u root -ppassw0rd asterisk > /root/asteriskDB.sql
mysqldump -u root -ppassw0rd asteriskcdrdb > /root/asteriskCDR.sql
tar -zcf /root/snapshot.tar.gz /var/www/html/admin/modules /var/spool/asterisk /var/lib/asterisk/agi-bin \
/etc/asterisk/*custom.conf /var/lib/asterisk/astdb.sqlite3 /root/asteriskDB.sql /root/asteriskCDR.sql

4b. On the 2020 platform with Incredible Fax, log in as root and issue the following commands:

fwconsole stop
mysqldump -u root -ppassw0rd asterisk > /root/asteriskDB.sql
mysqldump -u root -ppassw0rd asteriskcdrdb > /root/asteriskCDR.sql
mysqldump -u root -ppassw0rd avantfax > /root/avantfax.sql
tar -zcf /root/snapshot.tar.gz /var/www/html/admin/modules /var/spool/asterisk /var/lib/asterisk/agi-bin \
/etc/asterisk/*custom.conf /var/lib/asterisk/astdb.sqlite3 /root/asteriskDB.sql /root/asteriskCDR.sql \
/root/avantfax.sql /etc/hylafax /var/www/html/avantfax /var/spool/hylafax

5. On the 2021 platform, log in as root and issue the following commands:

cd /
scp root at 12.34.56.78:/root/snapshot.tar.gz .
fwconsole stop
tar zxvf snapshot.tar.gz
rm snapshot.tar.gz
cd /root
mysql -u root -ppassw0rd asterisk < asteriskDB.sql
mysql -u root -ppassw0rd asteriskcdrdb < asteriskCDR.sql
mysql -u root -ppassw0rd avantfax < avantfax.sql
mysql -u root -ppassw0rd asterisk -e "UPDATE freepbx_settings SET value = 'Incredible PBX 2021' \
WHERE freepbx_settings.keyword = 'DASHBOARD_FREEPBX_BRAND';"
fwconsole start
fwconsole reload
fwconsole ma delete clearlytrunking
fwconsole ma delete sms
fwconsole ma delete webrtc
fwconsole ma delete ucp
fwconsole ma downloadinstall ucp
fwconsole ma downloadinstall webrtc
fwconsole ma downloadinstall sms
fwconsole ma downloadinstall clearlytrunking
fwconsole reload

NOTES:

1. This procedure will not catch any “special” additions you have made on the 2020 platform outside of the FreePBX GUI.

2. NodeJS is customized for each operating system so all of the dependent modules have to be removed and then rebuilt as done above.

3. Why not use FreePBX Backup & Restore module… because it doesn’t work.