Learned something about backup i wish i wouldn't have learned

Hi all,

My HA crashed over a week ago.
I always made automatic backups so i thought it was safe to reinstall HA and load a backup saved on a NAS.
Man was i wrong.
The HA history and settings weren’t in the backup so i have to recreate everything except de apps.
2 years of data and many hours work down the drain.
I’ve noticed that when i download the backup, which is created on the NAS, via HA it’s much bigger and containes a much bigger homeassistant.tar.gz.
So the backup on the NAS is not a full backup.
How to automatically create a full backup so i don’t have this frustating experience again?

Thanks

I could rewrite this for you but its easier just to post a link

That’s how i created my backups. Doesn’t do a full backup.

Yes it does its all in the settings section.

But I recommend using google drive backup. Then even if your NAS fails you have an external backup.

1 Like

I also had a Google backup but the same problem.
This doesn’t backup that is says it backups.
Only if you download it from HA it has it all.
I double checked it.
homeassistant.tar.gz is 1.3 GB in the downloaded backup and 107 MB in the backup put on the NAS.

It must be something to do with your setup then, as mine are all the same size, be it local or Google. How do you copy them to NAS?

In HA i set it to save to NAS.

If I were in your shoes I’d:

. Do a full manual backup
. Set automatic (system) backups to back up EVERYTHING (inclu. share folder)
. Create an automation that triggers once a day to do a full backup of everything (using hassio.backup_full).

Compare the manual, automatic, and automation backups. Try restoring each backup to see which fails you (starting with the full manual backup).

There’s a varying array of platforms to host HA on. . . my HA Green backup/restore has been flawless, but I can’t speak to anything else but running HA on an HA Green (or whether backups are reliable across the entire spectrum of HA host configurations).

Have You unzipped Both, to compare ?
Have You Clicked the History (Include) in the Setting-Page ?

I did a full backup with hassio.backup_full.
Had to uncheck “Home Assistant exclude database” which seems to be the default.
Well THAT’S NOT A FULL BACKUP!
I can only choose the local system for backup, not the NAS or anything else.

Yes and yes.

1 Like

Sorry you had that experience.

And you’ve either located a nasty bug or you have a setting unique to your system! More likely) that’s getting in the way because that’s 100% not the intended behavior…

Because this…

So if you can confirm it did that open a bug because it’s not intended. And I’ve never seen it happen. I think backup bugs get. Logged in supervisor?

It doesn’t look like a bug because i had this on my former system which crashed and i have it on a newly installed sytem.
I have a workaround with a real full backup in an automation which stores the archive on a mounted share.
I had to
If i open the archive i now have a homeassistant.tar.gz which contains stuf while the automatic backup doesn’t.


image

Maybe you can check this in your system?

Your picture don’t tell or show Anything which another can make any Assumptions or Context of !
As you don’t show the file-name of the file-folders etc. or the Data within data

I solved this problem with what @bob.t said with an automation which makes a real full backup with the “Auto Backup” integration you can find in HACS.
Uncheck every exclude so all is included.
It also give you more control over i.e. make multiple backups per day.
Mounted a network share on my NAS.
The NAS uploads the backups to OneDrive which i check regularly.
Now my homeassistant.tar.gz in the backup archive contains stuff while the automatic backup doesn’t.
I’m going to test restore my HA maybe once a month or so. It’s on Proxmox so isn’t hard to do.

I’m curious if more people have this problem.

I will look at this. I did a manual full back and restore. Everything seemed to come back working, except for a couple device handshakes which were easy to reset.
My manual full backup is about 110GB, will see how big the automatic one is tonight.

I can confirm this is working
Just did a restore.

Did you download the backup from HA or did you use an external backup?
When you download it from from HA, it also includes the database.

the backup is done from HA directly to my NFS. The restore was done on a clean install of HA, drag and drop the IMG file.

Everything is working 100% now.