Feature request for backup functionality

To anyone who may have the skills:

I would like to see the list of post installed packages included in the backup.

opkg list-installed > packlist.txt
Makes a list of ALL installed packages That also would be helpfull...

But i would like to see Lede create a commandline to install those ADDITIONAL packages again
opkg update
opkg install

So when you re install a backup that the list of packages that still need to be installed is included in that backup. As a quick way to replace a complete backup.

1 Like

There's a feature request type for the new issue here: https://bugs.lede-project.org/index.php?do=newtask&project=2

A fully automatic re-install process will likely not be created, as there could be changes in package dependencies etc.

But some ideas for you:

  • Save the list of installed packages into /etc/config and it will get automatically saved/restored with your settings.
    opkg list-installed > /etc/config/packlist.txt
  • There are some scripts that can save package lists and use the list for re-installation after sysupgrade. Read e.g. the discussion here: https://forum.openwrt.org/viewtopic.php?pid=194478#p194478
    (I have included mforkel's script in my community build although I do not need it personally)
1 Like

re: Automated re-install process... It's a little bit of work to set it up, but consider listing all the packages in a script that you can re-run after flashing new firmware.

It's always safe to install without keeping settings, then let the script put your router back to a known state. You can see the current flavor of my script at: https://github.com/richb-hanover/OpenWrtScripts/blob/master/config-openwrt.sh


Thanks for the suggestions guys,

I'll defenately keep a list in /config

the scripts look good i hope something like this will be included in the backup section.

Link didn't show something useful and I searched manually for a feature request but couldn't find it (anymore).

Missed something?

The link is there so you could create one.

@stangri Why me? I arrived at last ;- ) Thanks for the link.


PS: Please register and vote for this feature!

I registered, but how can I vote for this?
I also want such functionality + option to automatically do such backup, say every week to my nas.

Where the number of actual votes is displayed.....and a +1 which is clickable if you are logged in.

lol, my bad. wasn't logged in at all.

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