52 bool exportTo(
const char* passphrase);
78 BackupManager() =
default;
79 BackupManager(
const BackupManager&) =
delete;
80 BackupManager& operator=(
const BackupManager&) =
delete;
bool exportTo(const char *passphrase)
Exports all module sections into one encrypted backup file.
BackupSummary importFrom(const char *passphrase)
Restores from the on-device backup file (best-effort).
bool backupExists() const
Reports whether a backup file is present on the device.
bool deleteBackup()
Deletes the on-device backup file.
static BackupManager & instance()
Returns the process-wide singleton.
Aggregated outcome of a restore across all modules.
uint16_t failed
Total records skipped due to errors.
bool ok
Container decrypted and parsed successfully.
bool system
System/NVS settings section was present and applied.
uint8_t modules
Number of module sections that were applied.
uint16_t imported
Total records restored (modules + system section).
uint8_t skipped
Module sections with no matching module on-device.