Bug 13799

Summary: Backup fails
Product: IPFire Reporter: Bernhard Bitsch <bbitsch>
Component: ---Assignee: Adolf Belka <adolf.belka>
Status: CLOSED FIXED QA Contact:
Severity: Major Usability    
Priority: - Unknown - CC: adolf.belka, horace.michael, jon.murphy, michael.tremer
Version: 2   
Hardware: unspecified   
OS: Unspecified   

Description Bernhard Bitsch 2024-12-09 13:47:05 UTC
In a community post appeared the problem, that after new install the backup config of a addon could not be restored.
Looking into the sources of backup.cgi, backupctrl and backup.pl I found the issue.
In backup.pl the restore is done by
- if a backup file is in /tmp, move it to /var/ipfire/backup/addons/backup
- extract the backup file in /var/....

The test of existence in backup.pl ( line 288) is done by
if [ -d "/tmp/${name}.ipf" ]; then
which should be
if [ -f "/tmp/${name}.ipf" ]; then
Comment 1 Michael Tremer 2024-12-09 14:16:43 UTC
Cool, are you able to send a patch for this change?
Comment 4 Adolf Belka 2024-12-19 09:10:13 UTC
Hi @Bernhard,

Will you be supplying a patch for this or would it help if I picked it up?
Comment 5 Bernhard Bitsch 2024-12-19 12:10:46 UTC
(In reply to Adolf Belka from comment #4)
> Hi @Bernhard,
> 
> Will you be supplying a patch for this or would it help if I picked it up?

Hi @Adolf,
it would help, if you pick it up.
Thx in advance.
Comment 7 Adolf Belka 2025-01-05 19:43:00 UTC
Patch has been merged into CU191.
Comment 9 Adolf Belka 2025-01-05 20:18:04 UTC
Tested out on my vm testbed with CU191 Testing using a fresh install of bacula with the default bacula-fd.conf file.

I then did an addon restore from bacula.ipf backed up from another vm testbed system.

The restore ended up with the correct backup file restored so the fix patch is verified to be working.