LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-25-2017, 07:41 AM   #1
NotionCommotion
Member
 
Registered: Aug 2012
Posts: 789

Rep: Reputation: Disabled
Recommended /etc/ directories to apply version control


I sometimes find myself making changes to some configuration, and needing to go back.

When building my last server, I used git for version control on the /etc/ directory.

Thought it was a good idea until I realized I /etc/pki/ was included. Maybe doesn't mater but still doesn't seem like the right thing to do. Also, files such as /etc/systemd/system/basic.target.wants/firewalld.service are changed not by me but by some other script.

Are there any good practices I should follow regarding version control of configuration files. One for all of /etc/? Maybe each application individually?

Thanks
 
Old 05-25-2017, 08:47 AM   #2
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
https://help.github.com/articles/ignoring-files/ for /etc/pki /etc/other

 
Old 05-25-2017, 09:03 AM   #3
NotionCommotion
Member
 
Registered: Aug 2012
Posts: 789

Original Poster
Rep: Reputation: Disabled
Thanks Habitual,

Yeah, that is the plan. My question is which directories should or shouldn't be ignored. For instance, you agree your private keys shouldn't be? If not these, what other directories?
 
Old 05-26-2017, 01:21 AM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,415

Rep: Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785
How about considering it from a services point of view and controlling the ones for the services you know you will want ?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Change Control at the Bash Shell? Version Control of Bash History gdizzle Linux - Enterprise 2 04-26-2015 06:56 PM
LFS version check gcc version higher than recommended EDDY1 Linux From Scratch 1 12-27-2012 07:39 PM
Nessus Recommended Version twk Linux - Security 2 04-25-2007 05:46 PM
How do I apply a patch for the new version of xchat? Womandrake Linux - Software 2 04-24-2003 07:46 PM
Access Control lists on directories riteshsarraf Linux - Security 0 10-22-2002 07:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:41 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration