Hi,
I have several questions that revolve around the same subject, so actually an answer could solve multiple questions.
I imagine some of you do this regularly, so I would like to benefit from your experience.
Case 1:
I backup /etc and /usr/local/etc on FreeBSD X RELEASE , and then I install on the same machine the same version, FreeBSD X RELEASE. Is it ok if I just replace the newly created /etc and /usr/local/etc and restore the ones in backup ?
Case 2:
Similar to Case 1, but with a minor version higher, so for example from 9.0-RELEASE (backed up version) to 9.1-RELEASE the newly installed version.
Or is it better to copy the backed-up etcs over the fresh ones, or the other way around, or use some merge program ?
Another question: if I keep updating my system (say using portmaster or pkg upgrade), what happens with my customized /etc files in case the upgrade would change also the respective configuration files ?
The last one: is it /usr/local/etc used for having configuration files that override the ones in /etc ? or it contains just a different set of configuration files, that is for /usr applications ?
Of course, my intention is to make things easier in the future, and the final objective to fully automate the configuration of FreeBSD, using a tool like Cfengine3.
But first, I have to understand how the configuration files work and how they evolve from one version to another.
Thank you!
I have several questions that revolve around the same subject, so actually an answer could solve multiple questions.
I imagine some of you do this regularly, so I would like to benefit from your experience.
Case 1:
I backup /etc and /usr/local/etc on FreeBSD X RELEASE , and then I install on the same machine the same version, FreeBSD X RELEASE. Is it ok if I just replace the newly created /etc and /usr/local/etc and restore the ones in backup ?
Case 2:
Similar to Case 1, but with a minor version higher, so for example from 9.0-RELEASE (backed up version) to 9.1-RELEASE the newly installed version.
Or is it better to copy the backed-up etcs over the fresh ones, or the other way around, or use some merge program ?
Another question: if I keep updating my system (say using portmaster or pkg upgrade), what happens with my customized /etc files in case the upgrade would change also the respective configuration files ?
The last one: is it /usr/local/etc used for having configuration files that override the ones in /etc ? or it contains just a different set of configuration files, that is for /usr applications ?
Of course, my intention is to make things easier in the future, and the final objective to fully automate the configuration of FreeBSD, using a tool like Cfengine3.
But first, I have to understand how the configuration files work and how they evolve from one version to another.
Thank you!