# Snapshots and undo (https://lazyfrog.dev/docs/snapshots)

A snapshot is a moment of your project you can go back to: its code, database and files.

## When they are taken [#when-they-are-taken]

- Automatically: every hour for the last day, then one a day for the rest of your plan's undo history.
- Before anything risky: database changes, migrations, publishes and restores.
- When you ask: "take a snapshot before you change the menu", or **Snapshot now** in the portal.

How long they're kept depends on your plan: 1 day on Free, 7 days on Hobby, 30 days on Pro and 90 days on Business.

## Going back [#going-back]

Ask your AI to undo, or open **Snapshots** in the portal and restore one. You choose what to restore, from just the code, the database or the files to everything. The state you replace is kept as a snapshot too, so a restore can be undone.
