1

Since the first installation of my system I modified various config files in /etc and I customised my system.

Copying the whole /etc for storage in a safe location before reinstalling/upgrading would slow down and potentially damage a new install, therefore how can I collect all and only the modified files?

  • 1
    Typically very hard to do properly. Looking at my own /etc I see plenty of files that are fairly recent and that I didn't change myself (likely due to automatic updates and a few recent installs). Not mentioning things that are links to files outside of /etc (like most /etc/systemd services). Personally I keep a shadow of /etc files I change (/etc/hosts, for instance), so they get backed up with my stuff when I do backups. I can also edit them with my favorite graphical editor and just sudo cp them when they are ready. – xenoid Feb 11 at 16:22
  • 1
    @xenoid That sounds like a decent solution - maybe not what OP is looking for, but still a solution. Could you post it as an answer? – wjandrea Feb 11 at 17:06
  • It looks like my question is answered partially in unix.stackexchange.com/questions/72746/… and in the links posted there -> there is no simple way to do what I asked – FarO Feb 11 at 17:22

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.