How to manually restore to FreePBX v17 if errors using fwconsole

Manually restoring FreePBX 17 when fwconsole commands are failing typically involves a fresh installation of FreePBX 17 and then restoring the configuration from a backup. This process circumvents issues with the existing installation or fwconsole utility.

1. Prepare a new FreePBX 17 installation:

  • Install a fresh operating system: Install a supported operating system, such as Debian 12, on a new server or virtual machine.
  • Install FreePBX 17: Follow the official FreePBX 17 installation instructions, which often involve using a script provided by Sangoma.


2. Obtain the backup file:

  • Locate the backup: Find the FreePBX backup file (typically a .tgz archive) generated from your previous FreePBX system. This file usually contains the database, configuration files, and other crucial data.
    Or find the .tar.gz backup archive from your old FreePBX system and save it to a location you can easily access.


3. Transfer the backup file:

  • Copy the backup: Transfer the backup .tgz file to the newly installed FreePBX 17 server. A common location for backups is /var/spool/asterisk/backup/default.
  • Ensure correct ownership: Verify that the backup file's ownership is set to asterisk:asterisk. You can adjust this using the chown command:

    Code
    chown asterisk:asterisk /var/spool/asterisk/backup/default/your_backup_file.tgz

    NOTE: If you did manual backup and have .tar.gz file, you can use that instead too. You can also upload your backup file by clicking "Click to upload a backup file" and selecting the .tar.gz archive from your local machine.

  • Restore the backup using the FreePBX GUI:
  • Access the FreePBX web interface: Open a web browser and navigate to the IP address of your new FreePBX 17 system.
  • Log in to the Admin GUI: Use the credentials you set up during the initial FreePBX 17 installation.
  • Navigate to Backup & Restore: Go to "Admin" > "Backup & Restore."
  • Select the backup file: Locate your uploaded backup file in the list and initiate the restore process.


5. Post-restore adjustments (if necessary):

  • Reinstall problematic modules: If you encounter issues with specific modules (e.g., Endpoint Manager), reinstall them after the restore to ensure compatibility with FreePBX 17. You can do this through the Module Admin in the FreePBX GUI or using fwconsole ma install [modulename].
  • Generate new certificates: If you experience issues related to certificates, especially with services like UCP, generate a new self-signed certificate in "Admin" > "Certificate Management" and set it as default.
  • Verify functionality: Thoroughly test your FreePBX system to ensure all extensions, trunks, and features are working as expected.


This manual restoration method provides a clean slate and avoids potential conflicts or corruptions present in the previous installation that might be hindering fwconsole operations.

Hjälpte svaret dig?

 Skriv ut denna artikeln

Läs även

How to manually backup FreePBX Legacy if errors using Web GUI or fwconsole

If encountering errors with fwconsole during FreePBX legacy backups, a manual backup approach can...

How do I use the Asterisk SIP Settings Module?

OverviewIt was necessary in the past to hand edit files like...

Login to the PBX Graphical User Interface ("GUI")

Using another machine on your same network, open a web browser and enter the IP address of your...

Asterisk SIP Settings

What is the Asterisk SIP Settings Module used for?The Asterisk SIP Settings Module is used to...

How to backup and restore FreePBX Legacy to latest v17

Upgrading from a legacy version of FreePBX to FreePBX 17 requires a backup and restore process,...