pub fn write_backup_state_snapshot( app: &AppRuntime, output_path: &Path, ) -> Result<(), BackupRestoreError>