Skip to main content

restore_file

Function restore_file 

Source
pub fn restore_file(
    engine: &Engine,
    paths: &WorkspacePaths,
    user: HostUser,
    skip: &[String],
    id: &SnapshotId,
    file: &str,
) -> Result<Restored, BackupError>
Expand description

Brings file back as it was in the snapshot id, after a snapshot of how the workspace is now. The rest of the workspace is left as it is.

ยงErrors

A file that is not a path inside the workspace, and everything restore fails for.