Config backup doesn't obey file list in sysupgrade.conf

I'm trying to make config template for several APs by setting up one.

For my "amusement", none of the networking or wireless setting is backed up in config backup that I've downloaded. And neither are the rc.local or custom script I've made.

sysupgrade.conf looks like this.

## This file contains files and directories that should
## be preserved during an upgrade.
/etc/fw_mod.sh
/etc/rc.local
/etc/config/
- /etc/dropbear/dropbear_ed25519_host_key
- /etc/dropbear/dropbear_rsa_host_key
# /etc/example.conf
# /etc/openvpn/

I've tryed without /etc/config/ but result is the same.

What is going one here?

What do you see in sysupgrade -l
The minuses upfront never worked.

#  sysupgrade -l
/etc/config/dhcp
/etc/config/dropbear
/etc/config/firewall
/etc/config/luci
/etc/config/socat
/etc/config/uhttpd
/etc/dropbear/dropbear_ed25519_host_key
/etc/dropbear/dropbear_rsa_host_key
/etc/group
/etc/nftables.d/10-custom-filter-chains.nft
/etc/passwd
/etc/rc.local
/etc/shadow
/etc/sysupgrade.conf

Remove two lines with minuses. No idea where you got the idea that stdin is to be backed up

2 Likes

I don't remember where I saw that that is the way to exclude files

It is not, you have to remove files from tarball

1 Like

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