Automatic backup based off last github update

Thought someone may enjoy this. The Idea is each time you commit to github home assistant makes a backup in .zip format to a network share

Works rather well I think

4 Likes

Why would you backup ? You can always restore an older version from Github. Or am I getting this wrong ?

This backs up everything in my home assistant directory including secrets, sensitive python and .sh scripts as well as some media such as white noise or doorbell tones. It’s super nice to have a local backup of my work and really isn’t taking up all that much space.

I’ve also found it useful to go back and look at files in my editor of choice which is nice not to search around.

Backup everything
Automate the process
Confirm backups work
Keep some old backups
Update backups frequently
Protect your backups
Spread your backups