---
title: Deploy Databasus with AI on Blossom
url: "/deploy/databasus/"
canonical_url: https://blossom88.com/deploy/databasus/
markdown_url: https://blossom88.com/deploy/databasus.md
summary: Back up a PostgreSQL database and restore it into a separate database.
categories:
- deployment
- databases
stack:
- Go
- React
- PostgreSQL
---

# Deploy Databasus with AI on Blossom

[Databasus](https://databasus.com/) backs up databases and restores
them on demand. Start with a sample PostgreSQL database and a separate
empty database so you can check the restore without touching the source.

## Ask Your Agent

> **Ask your AI agent:** Deploy Databasus on Blossom and help me back up and restore a sample Postgres database.
>
> Follow this guide: https://blossom88.com/deploy/databasus/

[Install the Blossom CLI and skill](https://docs.blossom88.com/learn/getting-started/install/) on your agent's machine and [choose a Location in your cloud account](https://docs.blossom88.com/learn/getting-started/choose-your-cloud/#connect-your-provider).

## How It Runs

| Part | Role | Where |
|---|---|---|
| Databasus | Run backup and restore jobs | Persistent Service behind Blossom Account access |
| PostgreSQL | Host the source database and separate restore target | Blossom Managed PostgreSQL |

## Deploy Databasus

Use the [official image](https://databasus.com/installation/). Open
Databasus behind Blossom Account access and create the first administrator.
Save its master key separately so you can decrypt the backups if you lose
the server.

<details class="optional-reading" markdown="1">
<summary>Notes for your agent</summary>

Expose HTTP on port `4005`. Mount a [Persistent Service Volume](/docs/apps/persistent-services/)
at `/databasus-data` for Databasus settings, local backup archives, and
encryption material. Use the private database credentials and match the
PostgreSQL TLS setting.

    blossom environment:deploy --id environment-100 --follow

</details>

## Create an Encrypted Backup

Connect Databasus to the sample source database and select encrypted
logical backups. Run a backup now and wait for it to complete.
This recipe writes to its Volume. Choose separate backup storage for
copies you need to recover if the Volume is lost.

> **Ask your AI agent:** Help me create an encrypted backup of the sample database.

> Follow this guide: https://blossom88.com/deploy/databasus/



![See the completed PostgreSQL backup.](/deploy/assets/images/databasus/original-backup.webp)

## Restore Into an Empty Database

Select the completed backup and set the separate empty database as the
target. Compare its sample rows with the source after the restore completes.

> **Ask your AI agent:** Restore that backup into an empty test database and compare the rows with the source.

> Follow this guide: https://blossom88.com/deploy/databasus/



![Reopen the original backup and restore it.](/deploy/assets/images/databasus/restore-history.webp)

## What You Get

An encrypted backup you can reopen and a tested restore into an isolated
database.

## What You Get

- An encrypted backup of a sample PostgreSQL database
- A restore into a separate empty database
- The original backup still available after Container replacement

Tested on Blossom: The original encrypted backup restored all three sample rows after Container replacement.
