pub async fn dump_to_path(path: &Path) -> Result<(), BackupError>
Convenience: dump and write the JSON to path.
path