Skip to main content

execute

Function execute 

Source
pub fn execute(
    target: &Snapshot,
    plan: &Plan,
    prepared: &Prepared,
    game_dir: &Path,
    cache: &Cache,
    ledger: &mut Ledger,
    watcher: &mut dyn Watcher,
) -> Result<Outcome, ExecuteError>
Expand description

Carries out a restore, opening a restore point of its own first, so a restore to the wrong point can be undone like any other run.

The ledger is rewritten even when a put-back fails, so a restore that stopped halfway still describes the folder truthfully.