How to Restore Configfile From Console

I did migrate my system to new hardware and have some issues to fix.

I do consider to create a new (scale) boot disk. The sate boot ssd who was previously connected via an USB to SATA converter is now directly connected to SATA. Which could be the cause of some errors/warnings. Other course could be that the boot-ssd started long ago probably as core boot.

Since the NAS is normally connected via a trunk containing many vlan’s, installing a clean scale version (TrueNAS-SCALE-25.10.1.iso) and updating the default with the actual config, is not really practical.

However, I do have console access. So I would like to install the boot ISO from the console using an USB-stick followed by an config update using the actual config also from the console …..

Seems quite logical IMHO …. but it is not possible as far as I know …..

I hope I am wrong. Note that pfSense allow this via a second USB-stick containing the config to use.

I hope I am wrong and it is possible …

I think I had previously read to NOT use this & to only use the GUI - so you know, use at own risk, etc.

Yeah, easiest to toss an ethernet cable into a cheap-o router with a spare computer and just upload the config through the webui. Spurting it with some console foolery on the commandline is possible so long as you know precisely the right API calls, but for a one-off operation probably not worth the effort unless it really is that cumbersome to get a cable moved over for a few minutes.

1 Like

That’s brilliantly smarter & easier

Yeah I have one of those tiny USB powered micro travel routers from TPLink for this purpose. But I probably reset more servers that don’t have a proper IPMI more often than a typical tech or homelabber.

cp your_config.db /data/freenas-v1.db

It is possible that they do other checks or conversions when done through the GUI (more during version upgrades). They SHOULD apply the SAME steps to a non default configuration, if done right.

But I have used this method several times before, with no issues.

Doing this only in theory works if you already have the secret seed for encypted fields copied to the correct path.