Home assistant Backup verification

Ok I have an issue with auto backups and manual backups.

As I understand it now backups are encrypted whether you want to or not. Think I might have an issue with this.

About a year ago I was backing up religiously and needed to restore to a previous day. I found it would not restore and the whole thing was kaput. I had a backup from a few weeks ago which loaded fine.

To investigate I copied the tar file to my windows install and unzipped it. I found the latest backup was corrupt. I did a backup again and tested it and it was the same story. Eventually the issue was fixed I think.

Since then on every significant change etc I do a backup and test the backup and download it. If it unzips it will work but if it doesn’t it wont restore. I just cant take the chance that it wont work.

Anyway to get to the point. Now that it’s being encrypted, am I able to unzip and test it?
I tried and it did not ask me for any “key” to decrypt. Give me an error saying its either damaged or unknown format.

There’s a Python script you can use to decrypt the backup (search the forum). Then you can open the archive.

Edit: here, Backup/Snapshots no longer decryptable? - #12 by Taapie

What ever you were doing before, that will stay exactly the same and are now called manual backups. Nothing changed there.
The new automatic backups are encrypted and have all the new features.

The only place they mix is they go into the same folder, so if you have an add-on or something that does stuff with moving or deleting files, that will also effect the automatic created ones.

1 Like

Ok good, but I just did a manual backup, downloaded and tried to unzip and get the same issue.

Just checked the manual backup and it says its encrypted.

image

manual as in push the backup button, the new button? yes
it will encrypt there.

Yes that’s the one. I also tried it from the backup page backup now and same result.

You are correct. I wasn’t told that, but in fact all backups are encrypted.

I had to test it to see for myself.

Yeah not really a good thing based on what I experienced.

What I had previously was a automated backup I had setup which is also uploaded to google drive. This backup at 2am is unencrypted so will leave it on and turn off auto backups.

Well google drive backup addon (and all the others that I know of) uses the HA code to actually preform the backup. I believe it WILL be encrypted based on this testing that manually pushing the backup button on the non automatic side also encrypted the backup.

Please run it and try it so you know.

hmm interesting. I have and its encrypted but the backup from the automation was not. I will try invoking another from the automation and check

OH, I want to know, so yes, test if you can.

Yay!

If anyone wants to use, change the time I guess

alias: Auto Backup 2
description: ""
triggers:
  - at: "14:34:00"
    trigger: time
conditions: []
actions:
  - data:
      compressed: true
      homeassistant_exclude_database: false
    action: hassio.backup_full
  - data:
      message: Backup Done
      title: Update
    action: notify.notify
mode: single
2 Likes

Like @Mrsash I’ll now be turning off the new HA backups and deferring to invoking:
action: hassio.backup_full

Well this is screwed…
I deleted the actual files but HA STILL shows them. Using the delete option on this page does nothing!

How do we clear these entries now??

Belay my last… it took its time but, they’re gone now

Also, Using and adjusting your automation example, mine duplicates and saves to two locations :+1: