When restoring a backup taken on another instance it fails to restore some things. It seems to work for extensions and users, but it doesn’t work for a whole lot of other things, like
cdr/cel database
announcements
music on hold
etc.
For all these I see lines like these in backup.log:
Processing cdr
The module cdr does not seem to support restores.
Processing cel
The module cel does not seem to support restores.
There’s even
Processing backup
The module backup does not seem to support restores.
which, funny as it is, doesn’t inspire a lot of confidence to say the least.
Edit: the missing files seem to be there, in the backup archive. cdr and cel dumps are there, it just doesn’t use them
Edit1: module version is | backup | 15.0.10.51 | Enabled and up to date | GPLv3+ |
Here’s the log, with time and lines containing “Importing AstDB” removed to make it more readable: https://pastebin.com/f9As05x0
/home/asterisk/.node/bin/npm-cache directory is symlinked to a file, …/lib/npm-cache/index.js instead of directory …/lib/npm-cache. Fixing it doesn’t fix the restore though.
The restore works when executed from the command line as root, instead of the web page, which runs the restore as user asterisk. I’m not sure what running as root does to the permissions on all those files copied around as root.