I have several Linux workstations, including servers on which I often make critical changes and would be happy to be able to roll back them in case I break something.
I therefore consider versioning critical folders like
/etc but I was wondering if other folders are important to keep under revision control. What would be your policy?
What I would include as as start in this policy is:
- Do not version
/var/logor other always changing folders (do you have other examples?)
- Do not nest repositories
- Version all critical services configuration outside of
/etc, any idea?
It would be great if more rules could be found, otherwise I can give more details about my specific problem:
- I am using Arch Linux on my workstations and laptops
- I am using OpenSuse on the servers I am responsible of
- These servers are production servers, meaning if I break the apache server on them and cannot quickly rollback them I leave all my coworkers in the dark.
- I use git as a revision control for our source code, but if another system is more suited to this task I would take it.