Moving FusionPBX to New Hardware

DigitalDaz

Administrator
Staff member
Sep 29, 2016
2,599
442
83

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
 

AIC2000

Member
Feb 15, 2018
162
2
18
31
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!
 

Andyd358

Member
Aug 23, 2018
186
7
18
52
UK
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!
did you mange to do this?
 

PBXMePlz

Member
Mar 1, 2019
61
5
8
28
Directories to tar up:
Code:
/etc/freeswitch
/etc/fusionpbx
/var/www/fusionpbx
/var/lib/freeswitch/
/usr/share/freeswitch

Possibly resurrecting an old post here, but also kind of doing it on purpose as this did help me. What's the value to zipping up /etc/fusionpbx? If you restore it to a new install, ultimately seem to have problems with the database password and such. Does anyone really edit the files in /etc/fusionpbx? Easy enough to just let the new one be and restore everything else, yea?