Skip to main content

restore

Function restore 

Source
pub fn restore(
    engine: &Engine,
    paths: &WorkspacePaths,
    home: &Home,
    harness: HarnessKind,
    user: HostUser,
    id: &SnapshotId,
) -> Result<Brought, BackupError>
Expand description

Brings the conversations of the snapshot id back into home, after a snapshot of how they are now, while the profile’s container is stopped.

A conversation made after id stays, as a file made after a workspace snapshot does.

§Errors

As snapshot, and the engine’s or git’s own words when the restore fails — an id the backup does not have among them.