OpenWrt/LEDE Project

  • Status Unconfirmed
  • Percent Complete
  • Task Type Feature Request
  • Category Base system
  • Assigned To No-one
  • Operating System All
  • Severity Low
  • Priority Very Low
  • Reported Version All
  • Due in Version Undecided
  • Due Date Undecided
  • Private
Attached to Project: OpenWrt/LEDE Project
Opened by Eric - 24.02.2017

FS#552 - Backup & restore of additionally installed packages

There is a discussion and also two different scripts available here:

Is it possible to incorporate some kind of this functionality into the standard distribution to lower the bar for newbies?

Script one:


Rich Brown commented on 07.10.2021 11:46

Good news! The luci-app-attendedsysupgrade package does exactly what I was hoping for. Once installed in 19.07 & 21.02, you simply request a new build for your router, and it gets installed.

The package ships a list of the manually installed (non-default) packages to the ImageBuilder at The ImageBuilder creates a new image and sends it back to the browser, which then uploads the image to the router for flashing.

There's brief documentation at and you can see it in action at:

Luiz Angelo Daros de Luca commented on 22.11.2021 22:30

sysupgrade can already save a list of installed packages with -k option.
You also have options '-o -u' to save everything that is not from a package nor a changed config file. Sum both together and you'll have:

# sysupgrade -o -u -k openwrt-....img

After reboot, you'll have a list of installed packages at /etc/backup/installed_packages.txt. You just need to "parse" it and run opkg install:

opkg update && grep '\toverlay' /etc/backup/installed_packages.txt | cut -f1 | xargs opkg install

I do that all the time.

The issue is that those packages that you are installing might be required to access the internet. The custom image generated by attendedsysupgrade is one solution for that problem. However, all the "extra packages" will be part of the image and not "upgradable" (but it is not an issue if you have plenty of flash space).

Another one would be a way to pack all required ipk files into the backup with a script that install them at early stages (uci-defaults?). I never did that but I think it is feasible, specially if an external service (like attendedsysupgrade) could gather those packages with dependencies for you.


Available keyboard shortcuts


Task Details

Task Editing