Skip to main content

export

Function export 

Source
pub fn export(root: &Path, dest: &Path) -> Result<Report, String>
Expand description

Writes an export of root into dest, then verifies its own output.

dest must not already exist. An export never writes into a directory it did not create, for the same reason scripts/restore_from_backup.sh never writes over a log: the thing being overwritten is the fallback.

ยงErrors

Returns a description when root holds no op log, when that log does not verify, when a repository the log names refs for cannot be bundled, or when the finished directory fails verify.