Backups created with FreePBX contains only directories but no more files that exist in these directories. Backups of the databases are available in the TAR file: the ASTDB as well as the MySQL databases asterisk and asteriskcdr.
I know that was not the case in the beginning. Yesterday I discovered this by accident. Since I delete the oldest files, I currently have no current backup.
An authorization problem I exclude, since the file permissions in my opinion are correct (asterisk.asterisk, rw-rw-r) and there is no error message.
I have no idea where to start searching. My customers do not have such a problem. The backup definitions I do everywhere the same.
What version of FreePBX? Using FreePBX Distro?
Oh, I am sorry. I use FreePBX 14. The core module has version 14.0.13.4, the Backup module has version 14.0.10.3.
I have installed the machine from the FreePBX-Distro-CD but without the package freepbx. Instead I have used the FreePBX tarball.
As I said, none of my clients have this problem, even though I did the installation via Tarball at each one.
I would think that the freepbx.log would have some details.
If you run a fwconsole backup
what is shown?
It might be a good idea to also do a fwconsole chown
just in case.
There is an error in /var/log/asterisk/backup.log:
data: sh: --exclude=node_modules: command not found
But I don’t exclude something in the backup definitions.
The backup log:
July 19, 2019, 8:11 am - Backup Lock acquired!
July 19, 2019, 8:11 am - Running pre-backup hooks…
July 19, 2019, 8:11 am - Adding items…
July 19, 2019, 8:11 am - id: bb2ac0b8da1f64a3498af147ba43fc10
data: Initializing Backup 3
July 19, 2019, 8:11 am - id: bb2ac0b8da1f64a3498af147ba43fc10
data: Backup Lock acquired!
July 19, 2019, 8:11 am - id: bb2ac0b8da1f64a3498af147ba43fc10
data: Running pre-backup hooks…
July 19, 2019, 8:11 am - id: bb2ac0b8da1f64a3498af147ba43fc10
data: Adding items…
July 19, 2019, 8:11 am - id: bb2ac0b8da1f64a3498af147ba43fc10
data: sh: --exclude=node_modules: command not found
July 19, 2019, 8:11 am - id: bb2ac0b8da1f64a3498af147ba43fc10
data: sh: --exclude=node_modules: command not found
July 19, 2019, 8:11 am - id: bb2ac0b8da1f64a3498af147ba43fc10
data: sh: --exclude=node_modules: command not found
July 19, 2019, 8:11 am - id: bb2ac0b8da1f64a3498af147ba43fc10
data: sh: --exclude=node_modules: command not found
July 19, 2019, 8:11 am - id: bb2ac0b8da1f64a3498af147ba43fc10
data: sh: --exclude=node_modules: command not found
July 19, 2019, 8:11 am - id: bb2ac0b8da1f64a3498af147ba43fc10
data: sh: --exclude=node_modules: command not found
July 19, 2019, 8:11 am - id: bb2ac0b8da1f64a3498af147ba43fc10
data: sh: --exclude=node_modules: command not found
July 19, 2019, 8:11 am - id: bb2ac0b8da1f64a3498af147ba43fc10
data: sh: --exclude=node_modules: command not found
July 19, 2019, 8:11 am - id: bb2ac0b8da1f64a3498af147ba43fc10
data: sh: --exclude=node_modules: command not found
July 19, 2019, 8:11 am - id: bb2ac0b8da1f64a3498af147ba43fc10
data: sh: --exclude=node_modules: command not found
July 19, 2019, 8:11 am - id: bb2ac0b8da1f64a3498af147ba43fc10
data: sh: --exclude=node_modules: command not found
July 19, 2019, 8:11 am - Building manifest…
July 19, 2019, 8:11 am - id: bb2ac0b8da1f64a3498af147ba43fc10
data: Building manifest…
July 19, 2019, 8:11 am - Creating backup…
July 19, 2019, 8:11 am - id: bb2ac0b8da1f64a3498af147ba43fc10
data: Creating backup…
July 19, 2019, 8:11 am - Storing backup…
July 19, 2019, 8:11 am - id: bb2ac0b8da1f64a3498af147ba43fc10
data: Storing backup…
July 19, 2019, 8:11 am - Running post-backup hooks…
July 19, 2019, 8:11 am - Backup successfully completed!
July 19, 2019, 8:11 am - id: bb2ac0b8da1f64a3498af147ba43fc10
data: Running post-backup hooks…
July 19, 2019, 8:11 am - id: bb2ac0b8da1f64a3498af147ba43fc10
data: Backup successfully completed!
July 19, 2019, 8:11 am - id: bb2ac0b8da1f64a3498af147ba43fc10
data: END
Out put from fwconsole backup:
sudo fwconsole backup
Usage:
backup [options]
Arguments:
command The command to execute
Options:
–json Output in JSON
–history Backup History
-h, --help Display this help message
-q, --quiet Do not output any message
-V, --version Display this application version
–ansi Force ANSI output
–no-ansi Disable ANSI output
-n, --no-interaction Do not ask any interactive question
-v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
Help:
Manage Backup jobs
Should I give an addidional argument?
I already have made fwconsole chown.
I have found the solution: the program rsync was not installed anymore. FreePBX should say that, if it is missing.
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.