xize11
2
hmm what type of data do you mean you want to preserve?
I need to know a few things to know exactly what you mean.
-
you just want a backup?, you can enter luci via advanced settings and then on System → Backup / Flash firmware you can make a backup.
-
if you upgrade and select keep settings you won’t lose the data.
-
do you want to preserve a script in a backup or some specific files which not include themselves in a backup?, then you can add the location in /etc/sysupgrade.conf now if you make a backup it will be included.
- do you want to run code after a upgrade?, then you have
/etc/uci-defaults
as you see theres alot of choice and directions 