pub async fn execute_rollback(args: &RollbackArgs) -> Result<()>Expand description
Handle the cache rollback subcommand.
Acquires the process-wide SubX lock, loads the journal, and replays completed entries in last-in-first-out order — undoing each file operation. When the rollback finishes successfully the journal file is removed so subsequent commands start from a clean state.
A missing journal is not an error; it yields an informational message
and returns Ok(()). When --force is not supplied, the command
aborts before touching any file if any destination’s size or mtime no
longer matches the journal record.