Step 1- Daily backups.
I use the Samba Backup add-on to an NAS. A lot of people use the Google Backup add-on.
This way if your Home Assistant server bricks, you just reinstall Home Assistant and restore from the latest unencrypted backup. At worst only the changes in the past few hours will be lost.