Moving FusionPBX to New Hardware


Staff member

Directories to tar up:

Commands used:
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!