FreePBX 15 "FULL" Backup & Restore

Hello all,

In FreePBX 13, there was a template for a “Full Backup” that included everything such as MySQL, Asterisk DB etc.

In FreePBX 15, with the new Backup & Restore module (v15.0.10.32), there is no such option. The only way to do is to add “Custom Files”? If so, what directories can I use? Would be great if there could be guide for that.

Thanks.

I could be wrong but looking at my v15 backup logs if you add all the modules to the backup (just above where you add custome files) it should get everything. Haven’t had time to delve into it deeper though, it’s on my to-do list.

Custom files are as the name implies, files that you have created that you want included in a backup. If you don’t colour outside the lines, you probably don’t have any custom files and have no need of this feature. Wiki page here in case you haven’t seen it:
https://wiki.freepbx.org/pages/viewpage.action?pageId=114852215

I did try that, but the backup file that is generated does not contain the MySQL database and AsteriskDB (not sure what else it excluded)

That’s that I though custom files were too.

In my case, I have no custom files, would only like to backup “everything” from one PBX and restore it to another.

I have already tried creating a backup but when I restore it on another FreePBX (same version i.e. 15), the AsteriskDB does not have any of the Key/Value pairs the source FreePBX does. Am I missing something here?

Appreciate your help.

AstDB is included in backups, what kv pairs are missing?

Attached are some of the diff snapshots.

Did I mess up the restore somehow? I’m trying to restore again and see if there is any change.

What ver of backup are you using?

fwconsole ma list  | grep backup

Backup from:
| backup | 15.0.10.32 | Enabled | GPLv3+ |

Restoring to:
| backup | 15.0.10.28 | Enabled | GPLv3+ |

I recommend updating backup to edge on both systems and trying again:

fwconsole ma downloadinstall backup --tag 15.0.10.33

If issue persists, we will need a ticket: https://issues.freepbx.org/

You may be able to resolve the broken astdb with:

fwconsole util resetastdb

Updated both FreePBX backup module to 15.0.10.33

The restore did not give any error, however, the astdb now looks like its empty. FreePBX however shows all the extensions, trunks etc. data correctly.

Unable to attach the entire logs (new users aren’t allowed), seeing a few errors in there

  CC(target) Release/obj.target/zlib/deps/libmariadbclient/zlib/inftrees.o
  CC(target) Release/obj.target/zlib/deps/libmariadbclient/zlib/trees.o
  CC(target) Release/obj.target/zlib/deps/libmariadbclient/zlib/uncompr.o
  CC(target) Release/obj.target/zlib/deps/libmariadbclient/zlib/zutil.o
  AR(target) Release/obj.target/deps/libmariadbclient/zlib/zlib.a
  COPY Release/zlib.a
  CXX(target) Release/obj.target/sqlclient/src/binding.o
../src/binding.cc:6: warning: "__STDC_FORMAT_MACROS" redefined
 # define __STDC_FORMAT_MACROS
 
<command-line>: note: this is the location of the previous definition
In file included from ../src/binding.cc:56:
../../nan/nan.h: In function 'void Nan::AsyncQueueWorker(Nan::AsyncWorker*)':
../../nan/nan.h:2294:62: warning: cast between incompatible function types from 'void (*)(uv_work_t*)' {aka 'void (*)(uv_work_s*)'} to 'uv_after_work_cb' {aka 'void (*)(uv_work_s*, int)'} [-Wcast-function-type]
     , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
                                                              ^
../src/binding.cc: At global scope:
../src/binding.cc:1647:28: error: 'Handle' has not been declared
     static void Initialize(Handle<object> target) {
                            ^~~~~~
../src/binding.cc:1647:34: error: expected ',' or '...' before '&lt;' token
     static void Initialize(Handle<object> target) {
                                  ^
../src/binding.cc: In static member function 'static void Client::cb_close(uv_handle_t*)':
../src/binding.cc:975:68: warning: 'v8::Local<v8::value> Nan::Callback::Call(v8::Local<v8::object>, int, v8::Local<v8::value>*) const' is deprecated [-Wdeprecated-declarations]
       obj-&gt;onclose-&gt;Call(Nan::New<object>(obj-&gt;context), 0, nullptr);
                                                                    ^
In file included from ../src/binding.cc:56:
../../nan/nan.h:1720:3: note: declared here
   Call(v8::Local<v8::object> target
   ^~~~
../src/binding.cc: In member function 'void Client::on_connect()':
../src/binding.cc:1007:60: warning: 'v8::Local<v8::value> Nan::Callback::Call(v8::Local<v8::object>, int, v8::Local<v8::value>*) const' is deprecated [-Wdeprecated-declarations]
       onconnect-&gt;Call(Nan::New<object>(context), 0, nullptr);
                                                            ^
In file included from ../src/binding.cc:56:
../../nan/nan.h:1720:3: note: declared here
   Call(v8::Local<v8::object> target

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