Opened 7 years ago

Closed 7 years ago

#8696 closed defect (invalid)

Luci 0.10 omits custom files located in /etc from backup in Backfire

Reported by: hnyman Owned by:
Priority: normal Milestone: Backfire 10.03.1
Component: luci Version: Backfire 10.03.1 RC4
Keywords: Cc:


Backfire was recently upgraded to use Luci 0.10.
After the change, the backup archive generation functionality seems to jump over some custom files specified in /etc/sysupgrade.conf and those files are not included in the backup archive, (although the specified files seem to be preserved over flashing.)

I would like to include the file /etc/hotplug.d/usb/10-usb in the backup archive, but I can't find a way to config that.

After some quick testing, it looks like files in /etc are maybe handled differently than other files.

root@OpenWrt:/mnt# cat /etc/sysupgrade.conf
## This file contains files and directories that should
## be preserved during an upgrade.

# /etc/example.conf
# /etc/openvpn/

The file /mnt/koe.txt will be included in backup file, but the /etc/hotplug.d/usb dir and the file there do not get included.

So, there is possibly a logic in the /etc backup auto-detection code that cleans those files away. However, the user-specified custom files selection should override the auto-cleaning routine.

Earlier, with Luci 0.9 branch, the files from there got included in the backup archive file just nicely.

I have not tested this with trunk, but the behaviour might be the same there as with Backfire.

Attachments (0)

Change History (2)

comment:1 Changed 7 years ago by hnyman

This ticket can be closed as invalid.

I looked into Luci code and noticed that it works just fine. The routine in picks the correct files from /etc/sysupgrade.conf for backup

There were two typos in my file, which made jump into wrong conclusions.
After correcting the lines it worked ok.


comment:2 Changed 7 years ago by jow

  • Resolution set to invalid
  • Status changed from new to closed

Closed by user request.

Add Comment

Modify Ticket

as closed .
The resolution will be deleted. Next status will be 'reopened'.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.