Don't open port 8123 on your router. Use Home Assistant Cloud, Tailscale or WireGuard to reach it from outside. Turn on automatic backups (Settings -> System -> Backups) and store a copy off the device.