Add support for cloud backups in Core (#5438)

* Add support for cloud backups in Core

* Test cases and small fixes identified

* Add test for partial reload no file failure
This commit is contained in:
Mike Degatano
2024-11-21 18:14:20 -05:00
committed by GitHub
parent a45d507bee
commit 5519f6a53b
28 changed files with 675 additions and 89 deletions

View File

@ -170,6 +170,11 @@ def initialize_system(coresys: CoreSys) -> None:
_LOGGER.debug("Creating Supervisor backup folder at '%s'", config.path_backup)
config.path_backup.mkdir()
# Core backup folder
if not config.path_core_backup.is_dir():
_LOGGER.debug("Creating Core backup folder at '%s", config.path_core_backup)
config.path_core_backup.mkdir(parents=True)
# Share folder
if not config.path_share.is_dir():
_LOGGER.debug("Creating Supervisor share folder at '%s'", config.path_share)