I was thinking of making a simple gui+daemon to backup and manage dotfiles with git, but then I figured that someone must have already done this. Does anyone know if there is a ready solution for this?
I’m thinking something like this:
- create a git repo on your $HOME. The repo includes only dotfiles, no user data and by default no ssh keys.
- have a simple gui to configure what is saved, possible upstream git repo and option to restore to a config.
- have a systemd timer run a script every 5 minutes or so, and commit any changes with automatically generated message
This way, you could easily rollback any configuration changes you do without much hassle or data loss.
I haven’t yet figured out how to manage the ever growing git history though.