Backups and restore
Daily copies of the live database and a restore point before every publish, restored with one click.
In stackly.json and the CLI it is backups. It has no price of its own; see What features cost.
backups · optional · no code · needs database · D1 Time Travel
Daily copies of the live database and a restore point before every publish, restored with one click.
Turn it on
"features": ["backend", "database", "backups"]
Then publish. No app code is needed; never build your own backup export for this.
How it works
- Stackly copies the live database every day and keeps 7 daily copies.
- The owner can make a copy by hand (5 kept), and a copy is kept before every restore (3 kept).
- The owner restores a copy on the Backups page in the Features tab.
Use it well
Keep migrations additive, so a restored copy still opens with the current code.
Locally
Copies only the live database on Stackly. The database of stackly dev is not backed up (stackly dev --reset starts
it over).