Backup and restore without core impossible?

I just made a backup task in the latest FreePBX 16 with only the following modules selected:

  • EndPoint Manager
  • IVR
  • Music on Hold
  • Paging and Intercom
  • Recordings
  • Ring Groups

No folders were set to back up, and importantly, no “core” module selected.

Then I restored it to a FreePBX 17 machine. Within the restore log I see the following indicating that core was both backed up and restored:

Processing core
Resetting core module data
Dropping table trunks…Done
Dropping table pjsip…Done

And indeed, trunks and all the rest of core have been moved over. Unzipping the backup file I find Core.json, of course.

That’s obviously a bug, but I have a question.

Is it possible to just remove the Core.json from the unzipped backup folder and then tar the folder back up and use it to restore? Or do I have to manually do everything on the new machine if I don’t want to migrate core?

Backup automatically backs up dependencies. Not doing so may cause undesirable effects on restore.

That makes all the sense in the world… if there was any indication that those additional dependencies were going to be run. It was a very unpleasant shock to run that backup from a compromised machine, run the restore on my new machine and have to start over installing the OS and FreePBX because the core was migrated without any warning.