Guides / DigitalOcean Managed Databases

Back up DigitalOcean Managed Databases.

DigitalOcean Managed Databases runs PostgreSQL, MySQL, Redis, MongoDB with standard connectivity — which means encrypted, verified, off-platform backups take a connection string and three minutes.

Find your connection details

Databases → your cluster → Connection details. Note the non-standard port (usually 25060).

# host looks like:
db-postgresql-fra1-12345-do-user-1.b.db.ondigitalocean.com

TLS: DO enforces TLS — sslmode=require.

The manual way

PostgreSQL (port 5432):

pg_dump -h db-postgresql-fra1-12345-do-user-1.b.db.ondigitalocean.com -U USER mydb | gzip > backup.sql.gz

MySQL (port 3306):

mysqldump -h db-postgresql-fra1-12345-do-user-1.b.db.ondigitalocean.com -u USER --single-transaction mydb | gzip > backup.sql.gz

Redis (port 6379):

redis-cli -h db-postgresql-fra1-12345-do-user-1.b.db.ondigitalocean.com --rdb - | gzip > backup.sql.gz

MongoDB (port 27017):

mongodump --host db-postgresql-fra1-12345-do-user-1.b.db.ondigitalocean.com -d mydb --archive | gzip > backup.sql.gz

One-shot and unencrypted. Scheduling, encryption, retention, verification and alerting are still on you — that's the part xbackupman automates.

The automated way

  1. 1. Add your DigitalOcean Managed Databases connection — the same host, user and password, encrypted at rest.
  2. 2. Point backups at storage you own (S3, R2, B2, MinIO, Drive…).
  3. 3. Pick a schedule — down to every 5 minutes; unchanged runs dedup to pointers.

FAQ

Does xbackupman support DigitalOcean Managed Databases?

Yes — DigitalOcean Managed Databases exposes standard PostgreSQL, MySQL, Redis, MongoDB connectivity, and xbackupman connects with the same credentials you use anywhere else. No special integration or agent is needed on the provider's side.

Are DigitalOcean Managed Databases backups encrypted?

Every dump is encrypted with AES-256-GCM using your organization's key before it leaves the worker, then stored in S3-compatible storage you own. DigitalOcean Managed Databases (and your storage provider) only ever see ciphertext.

Doesn't DigitalOcean Managed Databases already take backups?

Provider snapshots live inside the same account and platform as the database — one compromised credential or billing lapse can take both. Independent, encrypted, restore-verified copies in storage you control are what off-platform backups are for.