# Hermoso: restore_site_db: Restore a hosted · Hermoso developer docs

> Machine-readable twin of https://hermoso.ai/docs/reference/publish/restore_site_db/. Generated from the shipped page. Do not edit by hand.
> Full agent guide: https://hermoso.ai/llms.txt · MCP: https://app.hermoso.ai/mcp

[Docs](https://hermoso.ai/docs/) / [Tool reference](https://hermoso.ai/docs/reference/) / [Publishing & scheduling](https://hermoso.ai/docs/reference/publish/) / restore_site_db

# `restore_site_db`

Restore a hosted project's database destructive

Area: LAUNCH PAGES · [Publishing & scheduling](https://hermoso.ai/docs/reference/publish/). Generated from the running MCP server, like the rest of the [tool reference](https://hermoso.ai/docs/reference/).

## Description

Replace a hosted project's whole database with a snapshot (snapshot: an id from list_site_db_backups) or, in production, with how it was at a time in the last 30 days (timestamp, ISO). A snapshot of the database as it is now is taken first, so it can be undone. Files, uploads, secrets and sessions are not touched. Without confirm:true nothing changes; call again with confirm:true once the user says yes. Free.

## Parameters

Parameter Type Description

`name` required `string` the project (its hermoso.page name)

`snapshot` `string`

`timestamp` `string` ISO time, production only

`confirm` `boolean` true only after the user approved it

## Example call

Every required parameter is shown, filled from the schema where it gives a value and otherwise with a placeholder naming the type. Replace the placeholders with real values. The same call works on the MCP server, the CLI and `POST https://app.hermoso.ai/v1/tools/restore_site_db`.

**MCP** (`tools/call`)

`{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"restore_site_db","arguments":{"name":"<string>"}}}`
**CLI**

`hermoso call restore_site_db --json '{"name":"<string>"}'`

## Credits

Credits are spent only on two things: running an AI model (image, video, voice, text, planning, post-production) and Ad Spy research. See [Credits & costs](https://hermoso.ai/docs/credits/).

## Related tools

- [list_site_db_backups](https://hermoso.ai/docs/reference/publish/list_site_db_backups/) List a hosted project's database snapshots
- [site_email_report](https://hermoso.ai/docs/reference/publish/site_email_report/) A hosted project's email report
- [export_site_db](https://hermoso.ai/docs/reference/publish/export_site_db/) Export a hosted project's database
- [set_site_email_suppression](https://hermoso.ai/docs/reference/publish/set_site_email_suppression/) Edit a hosted project's email suppression list
- [site_logs](https://hermoso.ai/docs/reference/publish/site_logs/) Read a hosted project's server logs
- [list_site_users](https://hermoso.ai/docs/reference/publish/list_site_users/) List a hosted project's users
- [push_site_to_github](https://hermoso.ai/docs/reference/publish/push_site_to_github/) Push a hosted project to GitHub
- [update_site_user](https://hermoso.ai/docs/reference/publish/update_site_user/) Disable, enable or reset a hosted project's user
- [export_site](https://hermoso.ai/docs/reference/publish/export_site/) Download a hosted project as a zip
- [delete_site_user](https://hermoso.ai/docs/reference/publish/delete_site_user/) Delete a hosted project's user

[All 728 Publishing & scheduling tools](https://hermoso.ai/docs/reference/publish/) · [tools.json](https://hermoso.ai/docs/reference/tools.json)
