Back to Prisma

Restore database (destructive)

apps/docs/content/docs/management-api/endpoints/databases/post-databases-by-target-database-id-restore.mdx

latest549 B
Original Source

⚠️ Destructive operation — this immediately and irreversibly overwrites all data in the target database with the contents of the specified backup. Any data written since the backup was taken will be lost. Ensure you have a recent backup of the target database before proceeding.

Replaces the data in an existing database from a backup. Connections and credentials are preserved — only the data layer is replaced.

<APIPage document={"management-api"} operations={[{"path":"/v1/databases/{targetDatabaseId}/restore","method":"post"}]} />