# DigitalOcean

How to connect your DigitalOcean managed databases to SimpleBackups.

SimpleBackups supports all four DigitalOcean managed database engines: PostgreSQL, MySQL, MongoDB, and Redis. Because DigitalOcean manages the infrastructure, connecting any of these to SimpleBackups follows the same flow — whitelist SimpleBackups, copy your connection string, and paste it into SimpleBackups. No server setup is required.

## Connecting your database

### Step 1: Whitelist SimpleBackups IP addresses

Add the [SimpleBackups IP addresses](https://simplebackups.com/docs/help-tips-and-troubleshooting/connecting-a-server/simplebackups-ip-addresses-firewall) as trusted sources in your DigitalOcean database settings.

![DigitalOcean trusted sources configuration screen](https://simplebackups.com/docs/docs-assets/www-notion-so/42e22b1bbb51fa9bda03.png)

### Step 2: Copy the connection string

1. Click on **Connection details** in your database cluster overview.
2. Select **Connection string** from the dropdown.
3. For PostgreSQL, MySQL, and MongoDB: select the **Database** you want to back up and the **User**, then click **Copy**. For Redis, click **Copy** directly — there is no database or user selector.

PostgreSQL:

![DigitalOcean PostgreSQL connection details screen showing connection string option](https://simplebackups.com/docs/docs-assets/www-notion-so/9fbf5a36d177eb1c0003.png)

MySQL:

![DigitalOcean MySQL connection details screen showing connection string option](https://simplebackups.com/docs/docs-assets/www-notion-so/00bf8ab43a02c4848283.png)

MongoDB:

![DigitalOcean MongoDB connection details screen showing connection string option](https://simplebackups.com/docs/docs-assets/www-notion-so/b03e642e1c16d52be3b8.png)

Redis:

![DigitalOcean Redis connection details screen showing connection string option](https://simplebackups.com/docs/docs-assets/www-notion-so/fdd2194aba9f5b435b61.png)

### Step 3: Create a database backup in SimpleBackups

1. Navigate to **Backups** and click **Create Backup**, then select **Database Backup**.
2. Choose **Serverless** as the backup server type.
3. Select the database **Type** matching your engine: **PostgreSQL**, **MySQL**, **MongoDB**, or **Redis**. If you do not see the connection string field, click **Paste connection string instead**.
4. Paste the full connection string you copied from DigitalOcean.
5. Click **Validate connection**, then configure your schedule and storage destination.

PostgreSQL:

![SimpleBackups database connection form with PostgreSQL connection string pasted](https://simplebackups.com/docs/docs-assets/www-notion-so/ca671e95c27598fe0dff.png)

MySQL:

![SimpleBackups database connection form with MySQL connection string pasted](https://simplebackups.com/docs/docs-assets/www-notion-so/3f83d84a3e0b0bf0a16a.png)

MongoDB:

![SimpleBackups database connection form with MongoDB connection string pasted](https://simplebackups.com/docs/docs-assets/www-notion-so/f7f357cb14b25560b3f6.png)

Redis:

![SimpleBackups database connection form with Redis connection string pasted](https://simplebackups.com/docs/docs-assets/www-notion-so/c4f23fdd6db5af18ba09.png)

**Info:**
For PostgreSQL and MySQL, you can click **Download CA certificate** next to the **Copy** button in DigitalOcean and add the certificate to SimpleBackups. This step is optional but recommended.

PostgreSQL CA certificate field:

![SimpleBackups CA certificate field for PostgreSQL](https://simplebackups.com/docs/docs-assets/www-notion-so/d2f4ecf803022680a5f0.png)

MySQL CA certificate field:

![SimpleBackups CA certificate field for MySQL](https://simplebackups.com/docs/docs-assets/www-notion-so/b47890f2ef0298477615.png)

**Info:**
For MongoDB, you can click **Download CA certificate** next to the **Copy** button in DigitalOcean and add the certificate to SimpleBackups as shown below. Alternatively, remove the `tlsCAFile=` section from the connection string if you do not use a CA certificate.

MongoDB CA certificate field:

![SimpleBackups CA certificate field for MongoDB](https://simplebackups.com/docs/docs-assets/www-notion-so/b526113a460598678927.png)
