Etckeeper – let /etc. be stored in a Git, mercurial, bazaar or darcs repository
etckeeper.branchable.com
etckeeper.branchable.com
sudo apt install git etckeeper
and you are done! postinst script will create /etc/.git, set up sane exclusions, add existing files, commit. In most cases, no action is needed -- the changes are commited before and after package install, as well every night.This is like the ideal backup system -- trivial install, no user interaction, and uses standard tools to view backups.