OPNsense Forum

English Forums => General Discussion => Topic started by: CJ on April 22, 2021, 06:22:59 PM

Title: Prompt to save config prior to upgrading
Post by: CJ on April 22, 2021, 06:22:59 PM
TrueNAS has a neat feature where when you go to apply an update, it prompts you to download your config file.  This way you don't have to remember to do so or even have to go to another page.

This feature could prevent a lot of problems for users since they could easily reinstall and upload the config.

Thanks.
Title: Re: Prompt to save config prior to upgrading
Post by: chemlud on April 22, 2021, 06:37:30 PM
Same thought yesterday when starting update and .... ooops! Forgot to safe the config...
Title: Re: Prompt to save config prior to upgrading
Post by: marjohn56 on April 22, 2021, 06:41:59 PM
Or as I do, back up config and critical scripts automatically every night... then I do not need to remember.  :)
Title: Re: Prompt to save config prior to upgrading
Post by: franco on April 22, 2021, 08:08:58 PM
Not sure if it's worth it. Funnily enough you can create a rc.syshook script for post-update-pre-reboot to back up your config with a single command using the facility Martin mentioned.


Cheers,
Franco
Title: Re: Prompt to save config prior to upgrading
Post by: marjohn56 on April 22, 2021, 11:19:05 PM
Mines a custom job using rsync, backs up my entire conf folder plus some scripts that live in etc and rc.d. Fresh install with all scripts back in place takes < 5 minutes.
Title: Re: Prompt to save config prior to upgrading
Post by: CJ on April 24, 2021, 08:23:26 PM
Quote from: franco on April 22, 2021, 08:08:58 PM
Not sure if it's worth it. Funnily enough you can create a rc.syshook script for post-update-pre-reboot to back up your config with a single command using the facility Martin mentioned.


Cheers,
Franco

Sure, but are the majority of users going to bother?  Also, won't what you're suggesting just drop it on to the file system instead of the users computer?