Backup and restore question

Hello

We use the backup/restore module .

I want to know if it is possible to do a fresh install of freebpx , then restore our configuration.

Our current freepbx, 2.8.1.4 will not upgrade to 2.9 …

So I wonder if I could install freepbx from scratch, then restore our config.

If I follow the instructions from this link http://www.freepbx.org/support/documentation/installation/upgrading-your… :

cd /usr/src/
wget http://mirror.freepbx.org/freepbx-2.9.0.tar.gz
tar zxvf freepbx-2.9.0.tar.gz
cd freepbx-2.9.0
./start_asterisk start # for upgrades use: amportal start
./install_amp

So after a fresh install , then installing the backup/restore module, would it be possible to restore our configuration ?

thanks
Rob

No. You can’t restore FreePBX 2.8.1.4 onto a FreePBX 2.9 system.
You need to install FreePBX 2.8, then upgrade to 2.8.1.4, then restore. After that use the Version Upgrade module to upgrade to 2.9

Thank you for the information… It’ll be a good weekend project.

ok on a test system I was able to restore our backup to a 2.8.1.4 system.
then from there upgrade to 2.9.

Our production system seems to be somewhere in between 2.8 and 2.9 . sympotoms of that are in apache2 error logs like:
[Sun Sep 18 10:14:12 2011] [error] [client 173.48.186.201] PHP Notice: Undefined variable: fromstatsmonth in /replica/var/www/admin/cdr/call-log.php on line 370, referer: http://phonesys:1780/admin/reports.php

[Mon Sep 19 15:19:19 2011] [error] [client 173.48.186.201] PHP Notice: Undefined index: AMPEXTENSION in /replica/var/www/admin/modules/directory/functions.inc.php on line 274, referer: https://phonesys:1780/admin/config.php?type=setup&display=directory

So on our production system, I’d like to try to fix it and think this would work.

0 amportal stop
1- uninstall or move freepbx

  • mv /var/www /var/www-
    mkdir /var/www

2- stop mysql
mv /var/lib/mysql /var/lib/mysql-
mkdir /var/lib/mysql

or is there a better way to drop the tables ?

3- install 2.8 freepbx .

4- restore our backup

any comments or suggestions?

Undefined variables are trivial and can be ignored.
The supported way to upgrade from 2.8 to 2.9 is to use the Version Upgrade module.