FreePBX 15 Backup Trouble


(Itzik) #1

Hey all,

We did a full restore from a v13 to v15.

Few minor stuff had stopped working which after looking at the logs I saw that some custom agi scripts are missing from the /var/lib/asterisk/agi-bin folder. So I unpacked the original backup and the agi-bin folder isn’t in the backup. Keep in mind that was a full backup.

So I powered back on the old VM and rsynced the few agi scripts I knew that are missing.
Since we want to delete that old VM, I opened the GUI and created a backup of the /var/lib/asterisk/agi-bin directory and stored it locally since it does not have internet access.

Then I rsynced /var/lib/asterisk/agi-bin and the backup file, to /scripts/temp/ on the new VM.

So… obviously, I wanted these files on our offsite backup server as well, so I created on the FreePBX 15 a new backup “Old agi-bin Backp”, unchecked all modules, added the directory /scripts/temp/, added local and remote storage servers and hit play.

Nada. It doesn’t store it locally and also not offsite.

Alright, might be a permission issue? Nope. All seems fine. OK, maybe it is? So I added to backup the file /etc/asterisk/extensions_custom.conf

Still no joy…

Logs:

Running with: /usr/sbin/fwconsole backup --backup='492f8e3c-14fe-4094-b6c0-3b9be3b08ee2' --transaction='177bc352-f533-4970-b9ef-12ab40db98dc' >> /var/log/asterisk/backup_177bc352-f533-4970-b9ef-12ab40db98dc_out.log 2> /var/log/asterisk/backup_177bc352-f533-4970-b9ef-12ab40db98dc_err.log & echo $!
Running Backup ID: 492f8e3c-14fe-4094-b6c0-3b9be3b08ee2
Transaction: 177bc352-f533-4970-b9ef-12ab40db98dc
Starting backup OLD-agi-bin-Backup
This backup will be stored locally and is subject to maintenance settings
Backup File Name: 20210105-162655-1609882015-15.0.16.81-2104342060.tar.gz
No Module selected for this backup

OK, so I tried adding 1 module to the backup, the AMD module was the lucky one. And it works…

Logs:

Running with: /usr/sbin/fwconsole backup --backup='492f8e3c-14fe-4094-b6c0-3b9be3b08ee2' --transaction='a24b6c81-ddee-4561-919c-e84ee1b01d44' >> /var/log/asterisk/backup_a24b6c81-ddee-4561-919c-e84ee1b01d44_out.log 2> /var/log/asterisk/backup_a24b6c81-ddee-4561-919c-e84ee1b01d44_err.log & echo $!
Running Backup ID: 492f8e3c-14fe-4094-b6c0-3b9be3b08ee2
Transaction: a24b6c81-ddee-4561-919c-e84ee1b01d44
Starting backup OLD-agi-bin-Backup
This backup will be stored locally and is subject to maintenance settings
Backup File Name: 20210105-163120-1609882280-15.0.16.81-879479905.tar.gz
Working with amd module
Exporting KVStore from Amd
	Adding module manifest for amd
	Adding custom directory to tar: customdir/scripts/temp/
	Adding custom file to tar: customfiles/etc/asterisk/extensions_custom.conf
Starting Cleaning up
Finished Cleaning up
Finished created backup file: 20210105-163120-1609882280-15.0.16.81-879479905.tar.gz
Performing Local Maintenance
Finished Local Maintenance
Performing Remote Maintenance
Finished Remote Maintenance
Saving to selected Filestore locations
	Saving to: FTP:'OFFSITE Backup1' instance ,File location: //20210105-163120-1609882280-15.0.16.81-879479905.tar.gz 
	Saving to: Local:'Local Storage' instance ,File location: /var/spool/asterisk/backup/20210105-163120-1609882280-15.0.16.81-879479905.tar.gz 
Finished Saving to selected Filestore locations
Backup completed successfully

What am I missing that I have to include at least one module?

Bonus question.

[root@freepbx ~]# ls -1 /var/spool/asterisk/backup/
20210105-163120-1609882280-15.0.16.81-879479905.tar.gz
FullBackupIncludingAudio
OLD-agi-bin-Backup
Test-Local-Backup
Voicemail-Backup

If the PBX creates a backup folder, why doesn’t it drop the backup into that folder?

Thank much


(Lorne Gaetz) #2

Hi Pitzkey

File a ticket for this please: https://issues.freepbx.org/