3…2…1… Backup

I haven’t upgraded yet, but I have been following the discussion around backups.

One thing I’m still confused about, is if the local archives produced by the new automatic backup feature are indeed encrypted?

Enforcing encryption for backups that are uploaded to third-party cloud storage is reasonable in my opinion. I don’t think though, that the local archives should be encrypted as well.

My suggestion would be to make a two-step process.

  1. Create unencrypted archive on a schedule and manage those using retention policies.
  2. Only encrypt the archive before it’s uploaded to the third-party cloud storage.

This way advanced users would still be free to handle their data as they see fit. Users who don’t want to worry about this can enable Nabu Casa backups and enjoy a convenient and secure backup solution.

2 Likes

You can still do partial restores of the backup, nothing changed here. If you’re digging into the big backup zip file, looking for an old version of a yaml config and checking if it’s the one you need, you’ll enjoy version control.

Anyway, this conversation will end once they add a simple button to download an unencrypted version of the backup, or something like that. And they will.

But if on the route, they can give a thought (or add to roadmap) to a way to give users this kind of go back to a previous working version of an automation/script/esphome/config/…, these days feedback will have been worth it.

1 Like

I have been using the daily automatic backup integration for several years.

I have currently rolled back from 2024.12.5 to an older core version (here: 2024.10.4), so far, so good.

Of course, I have to update the individual integrations and HACS step by step - but some require higher core versions, e.g. 2024.11.

How can I select a previous core version for installation? Via the GUI I only ever get 2025.1, which I explicitly want to omit.

Thanks for any advice or links.

are you using HAOS, if so you can update to any version you want via the Command Line

(if you search the forum for something like “ha core update --version” you’ll get loads of examples and explanation on how to do this)

Good point. I’ve always used the term “archival” backups to distinguish them from DR backups. The schedule and retention period are different for each, and it’s typical to save DR backups off-site and archivals locally. Typically archivals are incremental backups, while DRs are full. Some operating systems incorporate version control into their file systems (e.g.; “previous versions”) to give an automatic archive capability.

2 Likes

Just to reiterate, if you are using any custom solution for backups (blueprints, automations, or add-ons that do not use encryption), they will continue to work today. Even with everything new, we’ve made sure to keep everything backward compatible.

As always, we’ll keep improving the functionality of automatic backups over the coming releases. As mentioned in our recent livestream, we’re looking at ways to decrypt your local automatic backups from the UI. This would be helpful if you needed to access the files in them. Hopefully, we’ll have more on that soon.

18 Likes

Thank you for the clarification and for the wonderful hard work you all do for the system!

1 Like

I plan to have a second system to restore a backup so I can have a way to decript the backup.

So my current automation at 3am will still run and be an unencrypted backup?

You are right on your more nuanced definitions.
History is the most accurate description which is part of what VC provide but the latter includes the whole distributed concurrent edits thing we don’t necessarily need here… Unless you are in a multi-tinkerer household :rofl:

What about manual local backups? Is there gonna be an option to disable encryption from the UI? Or forced encryption will stay?

5 Likes

Everyone is waiting for you to say: “We’ll give an option to leave the backups unencrypted in the next release”.

11 Likes

If you want to secure that, the only proper way is periodical testing of the restore process. Otherwise it’s a pure theoretical discussion.

Restoring a single file from the backup is a partial restore, you can’t do that with the new backup implementation in an easy manner looks like some folks were able to hack their way through some options. Partial restores as implemented only allow for a full add-on restore or the full settings restore which is more then what’s needed in most cases.

I also think there is a bit of a misunderstanding in what folks mean when they say version control, saving the last x versions of a file is not version control its version history. Version control would need to include the ability to purposely define versions and merge versions which would be quite above the scope of this project

I hope they will, but all conversation I have seen around this the core dev team has been quite resistant to provide a non-encrypted backup option despite large feedback during the beta and post go live.

1 Like

I may save a lot of your time: Using UI is slow… infinitively slower if UI is not accessible.

2 Likes

when you have HAOS or Supervisor you can make an Button or something witch runs the Action hassio.backup_full or you run the Action in the dev tools

1 Like

Let me just say I love this new feature,
Of course there are possibilities for improvements, there always is. But this is something I was hoping for for a long time.
My previous backups didn’t have a password set, simply because I was to lazy to setup it up and save the password.
Now I’m forces to, which (hopefully) is not that bad for me.

Big thanks to the devs making scheduled and external backups possible out of the box.

In all my decades supporting computer systems, I’ve learned not to rely on hope.

I won’t repeat all the possible pitfalls of this approach, which have been spelled out here and in the other related thread. But I will point out that no-one is asking that the option to encrypt be removed. Just that the option to create unencrypted backups be restored.

5 Likes

Does HA OS support raid yet? In my experience drive failure is a lot more common than lightening strikes! Even a way of running two SSD’s for the OS and being able to restore a backup on the secondary in case of primary failure would be helpful.

I wish there were more elaborate customisation options for scheduling and rotation strategy.

There’s little to no benefit for keeping daily backups from the last 30 days, but it makes a lot of sense to keep ones from (-1D, -2D, -3D, -1Wk, -2Wk, -3Wk, -4Wk, -3Mo, -6Mo).

It spares the storage space while giving you more flexibility if you realise you removed a script 3 months ago and would like to take a look at it.

Synology’s HyperBackup absolutely leads the way in this aspect:


3 Likes