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