Alias for updating YADM
Yadm update alias
Ref: YADM
Open ~/.config/yadm/repo.git/config
and add the following
[alias]
update = !git add -u && git commit -m \"$(date)\" && git push
Now when you give the command yadm update
, yadm will update all the exisiting files in repo, commit it with date and try to push to orgin. For bonus, you can add ssh keys to github/gitlab accounts and set this on a cron job to completely automate backing up of your configuration.