Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Rollback

sekai --store ./sekai-store rollback ./world 1
sekai --store ./sekai-store rollback ./world @stable --in overworld

Rebuilds the world from a snapshot, overwriting region files atomically (temp file in the target directory + fsync + rename; in-place mutation never happens). The snapshot argument accepts <id> or @tag (see Tags). Files are stamped with the snapshot time, and volatile tags are rewound to capture values.

The default policy is strict:

  • region files unknown to the snapshot (created afterwards) are deleted;
  • chunks unknown to the snapshot vanish on rebuild;
  • tombstoned chunks are removed (fully tombstoned regions delete the file, never leaving a header-only shell);
  • a blob missing from CAS aborts loudly (corruption — a partial world would be worse than none).

Each behavior is configurable without changing the default:

FlagEffect
--keep-post-snapshot-fileskeep snapshot-unknown files instead of deleting them
--keep-post-snapshot-chunkskeep live bytes for snapshot-unknown chunks inside rebuilt regions
--keep-tombstoned-chunkskeep live bytes for tombstoned chunks; fully tombstoned files are left alone
--on-missing-blob skip-chunkskip chunks whose blob is missing (default abort)
--on-missing-file derived-only|errorignore sibling folders, or fail, instead of guessing a location (default sibling-first)
  • Scope flags (--in, --region, --kind) rebuild and delete only inside the scope; see Scope selection. Combine with --timing/--json as usual.
  • Before rebuilding, the CLI echoes the target snapshot, scope, and policy to stderr (human output only).