Upgrade via ssh (setting)

hi,

for the first time, I would like to upgrade via ssh, I think I have the good command:

wget https://downloads.openwrt.org/snapshots/targets/mvebu/cortexa9/openwrt-mvebu-cortexa9-linksys_wrt3200acm-squashfs-sysupgrade.bin && sysupgrade openwrt-mvebu-cortexa9-linksys_wrt3200acm-squashfs-sysupgrade.bin

but I would like to know if I need to add something to keep my actual setting?
thanks

Simon,

that "blind" download & flash on your situation is dangerous IF file is broken.

You need to add verification part:


and check is it.
3 Likes

ok thanks for the advice and after that, I can proceed? but what about keeping setting?

Here is how to keep settings:

1 Like

The default for the sysupgrade script is to keep settings. No need to add any options.

(You can disable that with "-n" if you want to reset the router when sysupgrading)

3 Likes

ok, yes I saw, but with Ive always need to re upload wireguard, vpn policy based routing, LuCi, etc
when I use snapshot, I thought wireguard was there by default now

You

Oh, you are talking about self-installed add-on packages, not the actual config settings...

Yes, you need to reinstall those.
There are some scripts to help you (search forum), and sysupgrade script also has parameters to store a list of installed packages.

(In the long run the easiest approach is to build your personal firmware with all needed packages included.)

1 Like

If you build the firmware on you own , you can add custom config files
to firmware. Check out https://openwrt.org/docs/guide-developer/build-system/use-buildsystem#custom_files

If you just backup files via LUCi you could add more matching files or
directories for a backup. Under "Configuration" tab.

https://192.168.1.1/cgi-bin/luci/admin/system/flash

1 Like

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