New Backup format for core (#3451)

* New Backup format for core

* cleanup

* next round

* partial resotre encrypted function of metadata

* Using securetar as modul

* fix securetar imports

* simplify

* more typing

* adjust handling

* Handling replace better

* increase the order

* more logic cleanup

* create new core backup

* handle restore

* fix tests

* better checks

* Fix attribute issues

* Update supervisor/backups/manager.py

Co-authored-by: Joakim Sørensen <joasoe@gmail.com>

* Address comments

* Fix tests

* Update supervisor/exceptions.py

Co-authored-by: Joakim Sørensen <joasoe@gmail.com>

Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
This commit is contained in:
Pascal Vizeli
2022-02-23 16:08:02 +01:00
committed by GitHub
parent 842c4b3864
commit 9104b287e5
13 changed files with 274 additions and 591 deletions

View File

@@ -460,3 +460,10 @@ class StoreNotFound(StoreError):
class StoreJobError(StoreError, JobException):
"""Raise on job error with git."""
# Backup
class BackupError(HassioError):
"""Raise if an error during backup is happening."""