Skip to main content

export_from_dir

Function export_from_dir 

pub fn export_from_dir(
    dir: &Path,
    id: Option<&str>,
    sample: usize,
) -> Result<Vec<ExportedJournal>>
Expand description

Exports from a data directory without changing it: the directory is copied (checkpoints first, so the copy is consistent even while an engine writes to it) and the copy is recovered and read.