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