title: How to upgrade openwrt without losing the configuration?
body: <p>I need to make a script to upgrade my router without losing the configuration files and packages installed on the router.</p>
  
  <p>I tried to repeat the same behavior of the interface in my script (I used the command sysupgrade) but I lost the config.</p>
  
  <p>Besides, I have tried the upgrade with the interface with the option keep luci but it does not work too, I lost all the data router.</p>
  
  <p>The command sysupgrade does not retain the configuration.</p>
  
  <p>Is there anyone who offer me a solution?</p>
  
  <p>Thank you in advance for your help.</p>