Save and load snapshots
Save pogi's state under a name, load it back, share it as a file, and keep state across restarts.
A snapshot is a named copy of the state of every service. Save one when your setup is right, such as a seeded database and a few queues. Load it after a test has changed things, or give the file to a teammate.
Save, list, load and delete
-
Save everything under the name
demo:pogi snapshot save demoOutput saved demoWith no name,
saveuses the date and time as the name. -
List the snapshots:
pogi snapshot lsOutput NAME SIZE SAVED demo 15606 2026-10-13 21:05:46pogi snapshotalone lists snapshots too. -
Load the snapshot when a test has changed things:
pogi snapshot load demoOutput loaded demoloadreplaces the current state of every service. Anything created after the save is gone. -
Delete the snapshot when you no longer need it:
pogi snapshot rm demoOutput removed snapshot demo
Snapshots are stored in the snapshots folder of pogi's data folder. The data folder is ~/.pogi unless you set --data-dir.
Share a snapshot
-
Export a snapshot to a file. With no file name, or with
-, it goes to standard output:pogi snapshot export demo demo.snap -
On the other machine, import the file. The name defaults to the file name without its extension. Give a name to choose your own. To read standard input, use
-as the file and give a name:pogi snapshot import demo.snap team-seedOutput imported team-seed (load it with: pogi snapshot load team-seed) -
Load it when you want it. Importing only stores the snapshot:
pogi snapshot load team-seed
Reset
pogi reset deletes state without saving it. Save a snapshot first if you may want the state back.
-
Save a snapshot, if you want one:
pogi snapshot save before-reset -
Reset. Name services to reset only those:
pogi reset s3 sqsOutput reset s3, sqs
Use the console
The Snapshots page lists snapshots. It has buttons to save, load, download, delete and import them, and a Reset everything button. Home also has a Save snapshot button.

Keep state across restarts
pogi keeps state in memory by default, so stopping pogi clears it. To keep it, start pogi with a storage mode:
pogi start --persist--persist is short for --storage hybrid: pogi writes every service's state to disk every few seconds and when it exits. For --storage persistent (written before each write is acknowledged), --storage wal (a journal for DynamoDB, SQS and S3) and per-service modes, see Storage modes.
State files are in the state folder of the data folder, one file per service.
Use it from a script
The same actions are in the REST API under /_pogi/.
When a snapshot is refused
pogi checks a snapshot before it changes anything:
- A snapshot from a newer pogi is refused. The message gives its format and the newest one your pogi reads.
- A snapshot with no services (
{}) is refused withthis snapshot is not valid: it has no services. - If one service fails to decode, the message names it and the state stays exactly as it was.
- A service your pogi does not know is skipped. pogi warns in the log and the console's bell.