I’m new to development, be kind, and any tips on improving my code please comment.
USB-BACKUP
This is simplified automatic backup solution for Home Assistant OS - allowing for a usb drive to be plugged in and one-click backup. It can backup all the main Home Assistant folders and mounted network drives. It also has the ability to snapshot overwritten/deleted files for easy recovery. Powered by rsync.
Cloud backups are great (and necessary), but sometimes you need lots of data stored locally for fast recovery. Make this part of your 3-2-1 backup strategy.
Full details: Read the DOC.md
Credit: This is heavily based on the amazing work of Poeschl and his rsync local
Check the code: https://github.com/googanhiem/gords-ha-addons/tree/main/usb-backup
Warning: This is just one part of a backup solution, don’t use this exclusively as its not perfect and may lose your data.