Backup from LuCi including added packages and their configuration?

I have a Linksys WRT1900ACS running LEDE 17.01.2 with several packages added and configured.

Whenever I restore the backup from the one generated from LuCi, I lose all these manually installed packages along with their configurations. The list of packages that I have been adding to the original LEDE image are:

etherwake
luci-app-wol

ddns-scripts
ddns-scripts_no-ip_com
luci-app-ddns

openvpn-easy-rsa
openvpn-openssl
luci-app-openvpn

miniupnpd
luci-app-upnp

wifischedule
luci-app-wifischedule

sqm-scripts
luci-app-sqm

I am especially interested in preserving the DDNS and VPN-related ones, along with their configuration and certificate files.

Is there any way to preserve those in the LuCi backups? Or should I manually install them again and copying the certificate files after restoring the backup?

Thanks in advance.

A good start is the search function of the forum...

1 Like

That sounds to be possible.

I will search it.

PD: I found a feature request made by an user and some handmade scripts.
https://bugs.lede-project.org/index.php?do=details&task_id=552

I will go with it, although it would be nice to have it added officially in the backup section.

Thanks.

1 Like

Note that config files will be saved in sysupgrade.
You should only need to install the packages.

As you have only a few packages, it is pretty straightforward to write a shell script like:

opkg update
opkg install luci-app-wol
opkg install dns-scripts_no-ip_com
opkg install luci-app-ddns
opkg install luci-app-openvpn
opkg install luci-app-wifischedule
opkg install luci-app-sqm

And if store that is a subdirectory in /etc/config, it should get included in the sysupgrade backup.

1 Like

Thank you a lot.

I will do it that way :slight_smile: