restore_site_db
Restore a hosted project's database destructive
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 |
|---|---|---|
namerequired | 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.
Related tools
list_site_db_backupsList a hosted project's database snapshotssite_email_reportA hosted project's email reportexport_site_dbExport a hosted project's databaseset_site_email_suppressionEdit a hosted project's email suppression listsite_logsRead a hosted project's server logslist_site_usersList a hosted project's userspush_site_to_githubPush a hosted project to GitHubupdate_site_userDisable, enable or reset a hosted project's userexport_siteDownload a hosted project as a zipdelete_site_userDelete a hosted project's user