FreePBX | Register | Issues | Wiki | Portal | Support

Possible backup bug in v15?


#1

Just wanted to see if someone wanted to chime in before I file a bug. Installed backup module on v15, created a single backup entry, and this is what my database looks like now.

In addition to having a bunch of stuff doubled up, some with a backup ID, and some with “noid” there’s also a conflict between dot and underscore in the key names. Is this intentional?

mysql> select * from kvstore_FreePBX_modules_Backup order by `key`;
+--------------------------------------+-------------------------------------------------------------------------------------------------------------+----------+--------------------------------------+
| key                                  | val                                                                                                         | type     | id                                   |
+--------------------------------------+-------------------------------------------------------------------------------------------------------------+----------+--------------------------------------+
| b8ceeac1-0ce0-461d-895b-127074ed6d87 | {"id":"b8ceeac1-0ce0-461d-895b-127074ed6d87","name":"Daily","description":"Daily backup to remote storage"} | json-arr | backupList                           |
| backup.description                   | Daily backup to remote storage                                                                              | NULL     | noid                                 |
| backup.email                         |                                                                                                             | NULL     | noid                                 |
| backup.emailinline                   | no                                                                                                          | NULL     | noid                                 |
| backup.emailtype                     | both                                                                                                        | NULL     | noid                                 |
| backup.items                         | unchanged                                                                                                   | NULL     | noid                                 |
| backup.name                          | Daily                                                                                                       | NULL     | noid                                 |
| backup.schedule                      | 37 17 * * *                                                                                                 | NULL     | noid                                 |
| backup.storage                       | ["SSH_16de763e-0811-41c5-b880-a74934cebfa6"]                                                                | json-arr | noid                                 |
| backup_description                   | Daily backup to remote storage                                                                              | NULL     | b8ceeac1-0ce0-461d-895b-127074ed6d87 |
| backup_email                         |                                                                                                             | NULL     | b8ceeac1-0ce0-461d-895b-127074ed6d87 |
| backup_emailinline                   | no                                                                                                          | NULL     | b8ceeac1-0ce0-461d-895b-127074ed6d87 |
| backup_emailtype                     | both                                                                                                        | NULL     | b8ceeac1-0ce0-461d-895b-127074ed6d87 |
| backup_items                         | unchanged                                                                                                   | NULL     | b8ceeac1-0ce0-461d-895b-127074ed6d87 |
| backup_name                          | Daily                                                                                                       | NULL     | b8ceeac1-0ce0-461d-895b-127074ed6d87 |
| backup_schedule                      | 37 17 * * *                                                                                                 | NULL     | b8ceeac1-0ce0-461d-895b-127074ed6d87 |
| backup_storage                       | ["SSH_16de763e-0811-41c5-b880-a74934cebfa6"]                                                                | json-arr | b8ceeac1-0ce0-461d-895b-127074ed6d87 |
| id                                   |                                                                                                             | NULL     | noid                                 |
| maintage                             | 7                                                                                                           | NULL     | noid                                 |
| maintage                             | 7                                                                                                           | NULL     | b8ceeac1-0ce0-461d-895b-127074ed6d87 |
| maintruns                            | 2                                                                                                           | NULL     | noid                                 |
| maintruns                            | 2                                                                                                           | NULL     | b8ceeac1-0ce0-461d-895b-127074ed6d87 |
| publickey                            |                                                                                                             | NULL     | b8ceeac1-0ce0-461d-895b-127074ed6d87 |
| schedule.enabled                     | yes                                                                                                         | NULL     | noid                                 |
| schedule_enabled                     | yes                                                                                                         | NULL     | b8ceeac1-0ce0-461d-895b-127074ed6d87 |
| warmspare.remoteapply                | on                                                                                                          | NULL     | noid                                 |
| warmspare.remotebind                 | on                                                                                                          | NULL     | noid                                 |
| warmspare.remotedns                  | on                                                                                                          | NULL     | noid                                 |
| warmspare.remoteip                   |                                                                                                             | NULL     | noid                                 |
| warmspare.remotenat                  | on                                                                                                          | NULL     | noid                                 |
| warmspare.remotetrunks               | on                                                                                                          | NULL     | noid                                 |
| warmspare.user                       | root                                                                                                        | NULL     | noid                                 |
| warmspareenabled                     | on                                                                                                          | NULL     | noid                                 |
| warmspareenabled                     | on                                                                                                          | NULL     | b8ceeac1-0ce0-461d-895b-127074ed6d87 |
| warmspare_remoteapply                | on                                                                                                          | NULL     | b8ceeac1-0ce0-461d-895b-127074ed6d87 |
| warmspare_remotebind                 | on                                                                                                          | NULL     | b8ceeac1-0ce0-461d-895b-127074ed6d87 |
| warmspare_remotedns                  | on                                                                                                          | NULL     | b8ceeac1-0ce0-461d-895b-127074ed6d87 |
| warmspare_remoteip                   |                                                                                                             | NULL     | b8ceeac1-0ce0-461d-895b-127074ed6d87 |
| warmspare_remotenat                  | on                                                                                                          | NULL     | b8ceeac1-0ce0-461d-895b-127074ed6d87 |
| warmspare_remotetrunks               | on                                                                                                          | NULL     | b8ceeac1-0ce0-461d-895b-127074ed6d87 |
| warmspare_user                       | root                                                                                                        | NULL     | b8ceeac1-0ce0-461d-895b-127074ed6d87 |
+--------------------------------------+-------------------------------------------------------------------------------------------------------------+----------+--------------------------------------+
41 rows in set (0.00 sec)

(TheJames) #2

file the bug… I dont know what the “dot” keys are but the underscores are correct.