I have 2 identical servers with the same version of the FreePBX distro. The primary one has been configured with extensions and a trunk. The secondary is still at default settings except for IP address, hostname and FreePBX’s admin password, which is the same has the primary server. I’ve followed mbrevda’ blog post “High Availability Backup and Restore”.
http://www.freepbx.org/news/2010-05-30/high-availability-backup-and-restore
The problem I have is when the backup is performed and restored I get this after running it:
Saving Backup 2...done! Intializing Backup 2 Connecting to remote server... /bin/tar: Removing leading `/' from member names /bin/tar: Removing leading `/' from member names /bin/tar: Removing leading `/' from member names /bin/tar: Removing leading `/' from member names Veryfing received file... Prossesing received file... Storing backup... Running post-backup hooks... Restoring backup... Intializing Restore... Running pre-restore hooks, if any... Restoring files... /bin/tar: ./etc/freepbx.conf: Cannot open: File exists /bin/tar: Exiting with failure status due to previous errors File restore complete! Restoring settings... Getting Settings size... [FATAL] Trace Back:: die_freepbx()
[0]:
/var/www/html/admin/libraries/sql.functions.php:130 call_user_func()
[0]: die_freepbx
[1]:
/var/www/html/admin/modules/backup/bin/restore.php:264 db_e()
[0]: DB Error: syntax errorRunning post-backup hooks…
Backup successfully completed!
The backup is configured as “Full Backup” with the “restore” option set on. After the procedure, the FreePBX installation seems to be defective, I only see the menu title without the drop-down and they look like there’s no css applied. I also get this in the “FreePBX System Status”
retrieve_conf failed, config not applied Ignore this Reload failed because retrieve_conf encountered an error: 1 Added 16 minutes ago (freepbx.RCONFFAIL)
Thanks for your help
Daniel