Today it saved my life once again. I don't really know how could i do before having etckeeper installed on my machines
EDIT to explain the software: etckeeper keeps an automatic (and manual changes if you want) control of you etc files in a repository. Benefits:
Easy way (and almost mandatory if you do the commits manually)to document your changes on files on etc, even if the changes go on batches on different files, the documentantion would be as an unique bloke
automatic commit pre update and post updates with some hooks at the apt tool, with the collateral benefits of being able to tell exactly what the update made to you etc, and to have a automatic copy of your old version
If something is erased or overwriten, you have a fresh copy awaiting for you
you can diff after releases upgrades and compare with any version you want to know, so for instance you can tell apart changes made to the configuration files by the old mantainer of your system (if by chance it was not you) and what the original conf file looked like after an upgrade so you know what to is to keep and where is better to use changes of the mantainer of the package in your distro
its like messing with git and code! you can mess around all you want and stage your changes until tomorrow because its time to leave and nobody in charge of caring those machines during your absence will ever know
EDIT to explain why it saved me today:
vim stopped working as expected, and i didnt know why or when or how. I checked vimrc file and it was very different from what mine with all my modifications. I checked bash_history and i had, with my very big hands, cp overwriting my file.
Be careful with alt + . its a dangerous command when you are root :)
etckeeper saved the day and i only had to checkout the file and commit the good version :)
No ppl were harmed this day :)
[link] [13 comments]