Moving FusionPBX to New Hardware

DigitalDaz

Administrator
Staff member

Directories to tar up:
Code:
/etc/freeswitch
/etc/fusionpbx
/var/www/fusionpbx
/var/lib/freeswitch/
/usr/share/freeswitch

Commands used:
Code:
tar -zcvf xxx.tgz xxx
tar -zxvf xxx.tgz -C /destination/path
su - postgres
pg_dump fusionpbx > /tmp/fusionpbx.sql
drop database fusionpbx
create database fusionpbx
alter user fusionpbx with password 'xxxxxxxxxxx'
psql fusionpbx < /tmp/fusionpbx.sql
 
Also... you could script this up couldn't you, and create an rsync task so you'd have a redundant fusionpbx on a completely different network / service?

Then you could just switch the IP address and be good to go if there was a failure!