Read config files into database

tappy

Cadet
Joined
Feb 10, 2019
Messages
2
Just installed FreeNAS and liking it so far. A question though.

I would like to sometimes be able to edit config files directlyto save time (when setting up or changing multiple rsync modules for example). It looks like when I do this though the changes are not reflected in the UI -- I expect it has it's own independent database of configs, which would make sense.

So, is there any way around this? Can the UI be forced to parse the config files and 'refresh' it's view of the system config somehow?

Thanks in advance
 

Chris Moore

Hall of Famer
Joined
May 2, 2015
Messages
10,079
You might be able to use the API. You are not supposed to edit the config files directly. That type of change will not survive a reboot because the config files are recreated at boot based on what is stored in the config.db which is configured through the GUI.

http://api.freenas.org/
 

tappy

Cadet
Joined
Feb 10, 2019
Messages
2
That's what I suspected. I never thought there would be an API to be honest. I will explore it -- might be able to write some ansible modules for it if I get time.
 
Top