[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: putting config files under revision control



On 4/9/19, hdv@gmail wrote:
> On 09/04/2019 21.23, Lee wrote:
>> On 4/9/19, Dan Ritter wrote:
>>> Lee wrote:
>>>> What are people doing for putting config files in [under?] git?
>>>>
>>>> I'd like to have at least some system config files maintained in git
>>>> so I can get a history of changes.
>>>>   (and yes, I know, I really should be using a backup system for that,
>>>> but I'm still at the 'rsync to usb drive' stage)
>>>
>>> apt install etckeeper. Choose the git backend. (I think it's the
>>> default these days.)
>>
>> Thank you!
>>
>>> Chef or Puppet when you want to do this at scale.
>>
>> Maybe someday.  They'd be nice to learn, but they seem to be massive
>> overkill for home use.  ..or at least for my home use.
>
> If you want to keep things simple, maybe this perl-script I wrote years ago
> might be what you're looking for. Think of it as a visudo-style tool for
> config
> files (really just any file you can edit with vim). Just use the --manual
> option
> to read its man page. Basically it copies the file before editing to a
> location
> of your choosing, keeping its attributes if you want it to.

Thanks for the script.  It looks easy enough to understand, which is
always nice :)

Lee


Reply to: