Is /usr/local a safe place to store things?
-
I'd like to store some files in a place safe from being overwritten or cleared up by updates.
It's only some basic scripts, for instance, push certificates out and rearrange/rename them as if they were obtained by certbot on the destination and create PFX copies for IIS' Centralized Certificates feature.
I know it's OK in Linux and pre-iOSified macOS but I'm not sure about FreeBSD. If not
/usr/local
, what would be safe?/root
maybe? -
@skilledinept said in Is /usr/local a safe place to store things?:
/root maybe
That would be safe - I use it myself since long time ...
Regards,
fireodo -
/root or /conf should be safe. Waaay back when NanoBSD was a thing /conf was a separate mount point and was shared between the image slices so things there would never be overwritten.
Steve
-
Thank you-thank you! I was holding out on it and learn a little more about scripting in the meantime.
A while back I thought that I had to add data through the GUI (e.g. Diagnostics > Command Prompt) or it would get lost even without upgrades sort of like the TrueNAS console. In pfSense, I've noticed that sessions though SSH (and then option 8, not SSH+command) aren't the same though, like the history not being there plus the fact that they share base OS got me I was second guessing it.
They should share network config, BTW, TrueNAS networking is insane.
Thanks again!
-
Another option here, if the files are small, is to use the Filer package. That includes additional files in the config file so they will be restored if you have to re-install completely.
Steve