Warm Spare backup isn't including extensions and trunks

I have a warm spare backup setup on my primary PBX but it’s not including the trunks, inbound routes or extensions on the warm spare when it backs up.

Here are my backup settings. I have every module selected except for the backup module. I don’t see a module in the list for Extensions, Trunks, or Inbound Routes.

I’m on FreePBX 15.0.37.1

How can I get the backup to include those items?

I did some more troubleshooting with this. It appears that my backup file does not contain the extensions, trunks, or inbound routes. I attempted to take a full backup on my primary PBX, move that file to my warm spare and restored. I had the same issue.

Do I need to add a directory to the custom files section to include this?

I found some errors in the backup log on the core module. I’m assuming this is telling me my issue, but I can’t find the solution from Google searches.

Processing core
Resetting core module data
Dropping table trunks…Done
Dropping table pjsip…Done
Dropping table sip…Done
Dropping table dahdi…Done
Dropping table iax…Done
Dropping table indications_zonelist…Done
Dropping table devices…Done
Dropping table users…Done
Dropping table incoming…Done
Dropping table dahdichandids…Done
Dropping table outbound_route_patterns…Done
Dropping table outbound_route_sequence…Done
Dropping table outbound_route_trunks…Done
Dropping table outbound_routes…Done
Dropping table outbound_route_email…Done
Dropping table trunk_dialpatterns…Done
Updating tables trunks, pjsip, sip, dahdi, iax, indications_zonelist, devices, users, incoming, dahdichandids, outbound_route_patterns, outbound_route_sequence, outbound_route_trunks, outbound_routes, outbound_route_email, trunk_dialpatterns…Done
Starting Call Transfer Monitoring Service
Stopping Call Transfer Monitoring Service
Restarting Call Transfer Monitoring Service
Adding emergencydevices table…Done
Migrating pickup groups to named pickup groups
Migrating call groups to named call groups
Checking for possibly invalid emergency caller id fields…none found
Migrating old media encryption values…done
Removing encoding on incoming routes alertinfo values…done
Generating CSS…Done
Restoring from core [FreePBX\modules\Core\Restore]
Processing Dahdichannels
Processing Devices
Invalid argument supplied for foreach() on line 13 of file /var/www/html/admin/modules/core/Restore/Devices.php
#0 /var/www/html/admin/modules/core/Restore/Devices.php(13): Whoops\Run->handleError(2, ‘Invalid argumen…’, ‘/var/www/html/a…’, 13, Array)
#1 /var/www/html/admin/modules/core/Restore/Devices.php(7): FreePBX\modules\Core\Restore\Devices->updateDevices(Array)
#2 /var/www/html/admin/modules/core/Restore.php(53): FreePBX\modules\Core\Restore\Devices->setConfigs(Array)
#3 /var/www/html/admin/modules/backup/Handlers/Restore/Common.php(141): FreePBX\modules\Core\Restore->runRestore()
#4 /var/www/html/admin/modules/backup/Handlers/Restore/Common.php(129): FreePBX\modules\Backup\Handlers\Restore\Common->runRestore(Object(FreePBX\modules\Core\Restore))
#5 /var/www/html/admin/modules/backup/Handlers/Restore/Multiple.php(71): FreePBX\modules\Backup\Handlers\Restore\Common->processModule(‘core’, ‘15.0.22.33’, Array)
#6 /var/www/html/admin/modules/backup/Console/Backup.class.php(338): FreePBX\modules\Backup\Handlers\Restore\Multiple->process(false, Array)
#7 /var/www/html/admin/libraries/Composer/vendor/symfony/console/Command/Command.php(255): FreePBX\Console\Command\Backup->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#8 /var/www/html/admin/libraries/Composer/vendor/symfony/console/Application.php(960): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#9 /var/www/html/admin/libraries/Composer/vendor/symfony/console/Application.php(255): Symfony\Component\Console\Application->doRunCommand(Object(FreePBX\Console\Command\Backup), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#10 /var/www/html/admin/libraries/Composer/vendor/symfony/console/Application.php(148): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#11 /var/lib/asterisk/bin/fwconsole(163): Symfony\Component\Console\Application->run()
#12 {main}

I figured out the problem. I’m adding the solution here in case it helps someone.

My primary PBX was running Backup & Restore version 15.0.25. My warm spare was running version 15.0.21. I found this issue that showed a similar problem that was resolved in version 15.0.24. After I updated my warm spare Backup & Restore module to 15.0.25 everything worked as expected.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.