# Database Backup

Database Backup is a self-hosted backup app. Lightweight, self-hosted database backup container written in Go that automates scheduled PostgreSQL, MariaDB/MySQL, MongoDB, and SQLite backups. It is open source and self-hosted, installable on Unraid.

Canonical page: https://ourlocalhost.com/app/2749/database-backup

## Description

Lightweight, self-hosted database backup container written in Go that automates scheduled PostgreSQL, MariaDB/MySQL, MongoDB, and SQLite backups. It uses a simple YAML configuration file with built-in validation, dynamically installs only the database clients your jobs need at startup, and includes an in-process scheduler so no external cron daemon is required. Backups are streamed with gzip compression, written atomically, and timestamped. Optional at-rest encryption supports GPG (symmetric OpenPGP) and age (passphrase or public-key). Per-job retention policies rotate old backups only after a successful run, and the container runs unprivileged by default with support for multiple databases of different types and hosts in a single instance.

## Platform availability

Available on 1 of 10 platforms: Unraid.

## Health score

45/100 (Fair), based on 4 of 4 factors.
- Maintained: 88 (last commit 7 days ago)
- Popular: 6 (1 GitHub stars)
- Easy to install: 35 (1 install platform, install notes, Docker image)
- Light to run: 10 (8 GB minimum RAM)

## Links

- Unraid: https://ca.unraid.net/apps/database-backup-1snbnoa1edclam?q=database-backup

## Common questions

### Does database-backup require an external cron daemon?

No, it uses an in-process scheduler, so backup scheduling is handled inside the container.

### Can one instance back up multiple database types and hosts?

Yes, a single container can back up multiple databases of different types and hosts. It dynamically installs only the database clients needed by the configured jobs at startup.

### Does it support file-based SQLite backups?

Yes, SQLite file-based databases are supported, for example Vaultwarden. The dumps are streamed with gzip compression and are timestamped.

### Can backups be encrypted at rest?

Optional at-rest encryption supports GPG with symmetric OpenPGP or age with a passphrase or public-key recipients.

### How do I validate the YAML configuration before starting the container?

Create the backups.yml file and run the built-in validate command. This checks that the configuration parses correctly and that the referenced database clients are available.

### How do I migrate from the v1 backups.conf format?

Use the built-in migration command to convert the v1 backups.conf file to the YAML format.

---
Source: Our Local Host (https://ourlocalhost.com/app/2749/database-backup), the self-hosted and open-source app directory.
