Backup is saved to the root directory in local storage

FreePBX 15, Backup & Restore module version 15.0.8.88

I make a backup to the local storage in filestore module (Path ASTSPOOLDIR/backup).
The process creates an empty folder with the backup name (/var/spool/asterisk/backup/Test_backup), but tar.gz saved in /var/spool/asterisk/backup

Running with: /usr/sbin/fwconsole backup --backup=‘04b8f2d6-fa36-4fe1-872c-462c5722a082’ --transaction=‘d9e7b2f6-c6c1-423c-9453-4fa780f04502’ >> /var/log/asterisk/backup_d9e7b2f6-c6c1-423c-9453-4fa780f04502_out.log 2> /var/log/asterisk/backup_d9e7b2f6-c6c1-423c-9453-4fa780f04502_err.log & echo $!
Running Backup ID: 04b8f2d6-fa36-4fe1-872c-462c5722a082
Transaction: d9e7b2f6-c6c1-423c-9453-4fa780f04502
Starting backup Test_backup
This backup will be stored locally and is subject to maintenance settings
Backup File Name: 20200214-095337-1581663217-15.0.16.42-1551771165.tar.gz
Working with core module
Exporting Feature Codes from core
Exporting Advanced settings from core
Exporting KVStore from Core
Adding module manifest for core
Working with extensionroutes module
Exporting Databases from extensionroutes
Adding module manifest for extensionroutes
Working with miscdests module
Adding module manifest for miscdests
Working with timeconditions module
Exporting Databases from timeconditions
Exporting Feature Codes from timeconditions
Exporting Advanced settings from timeconditions
Adding module manifest for timeconditions
Adding module cel to queue because timeconditions depends on it
Adding module calendar to queue because timeconditions depends on it
Working with cel module
Exporting Advanced settings from cel
Adding directory to tar: /tmp/dbdump
Adding file to tar: files/tmp/dbdump/cel.sql
Adding module manifest for cel
Working with calendar module
Adding module manifest for calendar
Starting Cleaning up
Cleaning up data generated by Cel
Removing /tmp/dbdump
Finished Cleaning up
Finished created backup file: 20200214-095337-1581663217-15.0.16.42-1551771165.tar.gz
Performing Local Maintenance
Finished Local Maintenance
Performing Remote Maintenance
Finished Remote Maintenance
Saving to selected Filestore locations
Saving to: Local:‘Local Storage’ instance ,File location: /var/spool/asterisk/backup/20200214-095337-1581663217-15.0.16.42-1551771165.tar.gz
Finished Saving to selected Filestore locations
Backup completed successfully

This happens with warm backup and it cannot be restored

RRunning with: /usr/sbin/fwconsole backup --backup=‘2dc24fe4-b772-4fb5-9c4d-f073d6556738’ --warmspare --transaction=‘a448b7ab-a67c-4ea2-86dd-16ebc835d4bd’ >> /var/log/asterisk/backup_a448b7ab-a67c-4ea2-86dd-16ebc835d4bd_out.log 2> /var/log/asterisk/backup_a448b7ab-a67c-4ea2-86dd-16ebc835d4bd_err.log & echo $!
Running Backup ID: 2dc24fe4-b772-4fb5-9c4d-f073d6556738
Transaction: a448b7ab-a67c-4ea2-86dd-16ebc835d4bd
Starting backup Georezerv_test
This backup will be stored locally and is subject to maintenance settings
Backup File Name: 20200214-095608-1581663368-15.0.16.42-1435453577.tar.gz
Working with core module
Exporting Feature Codes from core
Exporting Advanced settings from core
Exporting KVStore from Core
Adding module manifest for core
Working with extensionroutes module
Exporting Databases from extensionroutes
Adding module manifest for extensionroutes
Starting Cleaning up
Finished Cleaning up
Finished created backup file: 20200214-095608-1581663368-15.0.16.42-1435453577.tar.gz
Performing Local Maintenance
Finished Local Maintenance
Performing Remote Maintenance
Finished Remote Maintenance
Saving to selected Filestore locations
Saving to: Local:‘Local Storage’ instance ,File location: /var/spool/asterisk/backup/20200214-095608-1581663368-15.0.16.42-1435453577.tar.gz
Finished Saving to selected Filestore locations
Backup completed successfully
Warmspare enabled for this backup
We Have triggered an API to restore the backup on Spare Server
Response from Warmspare backup Server API
clientMutationId :a448b7ab-a67c-4ea2-86dd-16ebc835d4bd
Restorestatus :Backup file not found

Hi @web115

Backup and restore functionality in FreePBX 15 is changed.

Backup will be saved to the path you given if the backup is successful and the backup will be saved to “/var/spool/asterisk/backup/backup_name/” folder if the backup fails.

For example if you are using you are setting your local backup path as “/home/backup” then your backup will be saved in “/home/backup” if your backup is successful without any errors.
And if your backup fails for some reason then the backup will be saved in “/var/spool/asterisk/backup/your_backup_name/”.

And warmspare functionality also changed, for warmspare you need to add your warmspare server as a filestore system either using ftp or ssh and you need to select your warmspare system as storage location and the restore will be trigerred from the primary server using GraphQL API.

Please refer https://wiki.freepbx.org/pages/viewpage.action?pageId=165806910 for more understanding of warmspare setup.

Thanks and Regards,
Sandesh P

1 Like

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