Skip to content

Checkpoint

Source: src/Fly/Checkpoint.ts

Checkpoint and restore a Sprite filesystem.

Bind the client in init. Provide CheckpointHttp.

const checkpoint = yield* Fly.Checkpoint(Box);
yield* checkpoint.create({ comment: "before deploy" });

Restore rewinds the filesystem. Running processes stop.

yield* checkpoint.restore("v1");