PHPackages                             bwein-net/contao-database-backup - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. bwein-net/contao-database-backup

ActiveContao-bundle[Database &amp; ORM](/categories/database)

bwein-net/contao-database-backup
================================

Database Backup for Contao Open Source CMS

2.3.2(6mo ago)222.5k↑17.9%2MITPHPPHP ^8.2

Since Aug 14Pushed 5mo ago1 watchersCompare

[ Source](https://github.com/bwein-net/contao-database-backup)[ Packagist](https://packagist.org/packages/bwein-net/contao-database-backup)[ Docs](https://github.com/bwein-net/contao-database-backup)[ GitHub Sponsors](https://github.com/sponsors/rabauss)[ RSS](/packages/bwein-net-contao-database-backup/feed)WikiDiscussions main Synced 3d ago

READMEChangelogDependencies (13)Versions (22)Used By (0)

Database Backup for Contao Open Source CMS
==========================================

[](#database-backup-for-contao-open-source-cms)

This Bundle provides a backend module to easily create and list backups of the contao database. The backups can be downloaded in the backend and backups can be created manually by backend users.

Please read the migration notes from version 1 below! The console command `bwein:database:backup` and cronjob listener were removed from the extension in version 2 because Contao 4.13 includes a backup command - see:

Installation
------------

[](#installation)

Install the bundle via Composer:

```
composer require bwein-net/contao-database-backup

```

Configuration
-------------

[](#configuration)

In the `config/config.yml` you can add the following optional parameters:

```
# config/config.yml
bwein_database_backup:
    cron_interval: 'daily'
```

The default of `cron_interval` is `null` - so no cron job is running. You have to define it manually - see:

The option `cron_interval` can be `minutely`, `hourly`, `daily`, `weekly`, `monthly`, `yearly` or a full CRON expression, like `*/5 * * * *` - see:

**Attention:** Even if you define `daily` as `cron_interval` you need to specify the `keep_max` and `keep_intervals` of the core to have daily backups e.g.

```
# config/config.yml
contao:
  backup:
    keep_max: 10
    keep_intervals: ['1D', '2D', '3D', '4D', '5D', '6D', '7D', '14D', '1M']
```

Migration from version 1 to 2
-----------------------------

[](#migration-from-version-1-to-2)

### Replace Configuration

[](#replace-configuration)

The custom configuration `bwein_database_backup` has to be removed from `config/config.yml`. Optionally, it can be replaced by the core configuration - see:

### Run Migration

[](#run-migration)

The existing backups will be automatically moved from `var/db_backups` to `var/backups` with a migration by running `contao:migrate` or use the Contao Install Tool.

### Change backup directory

[](#change-backup-directory)

If you use deploy tools like deployer that define shared dirs, you need to change the backup directory from `var/db_backups` to `var/backups`!

### Add Cronjob

[](#add-cronjob)

The cronjob listener has been removed so you have to add a manual daily routine:

```
0 4 * * * /path/to/system/vendor/bin/contao-console contao:backup:create

```

see:

### Replace command usages

[](#replace-command-usages)

The command `bwein:database:backup` has been removed so you need to replace the usages to `contao:backup:create` - see:

###  Health Score

54

—

FairBetter than 96% of packages

Maintenance71

Regular maintenance activity

Popularity31

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity84

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~134 days

Recently: every ~322 days

Total

21

Last Release

189d ago

Major Versions

1.x-dev → 2.02022-03-29

PHP version history (5 changes)1.0.0PHP &gt;=7.0

1.2PHP &gt;=7.2

1.2.2PHP ^7.2 || ^8.0

2.0PHP ^7.4 || ^8.0

2.3PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/a08826af10df31af501e1a17ecfdaffffe0dcc0346cf1c5517ae9a2667e535a7?d=identicon)[r.baussenwein](/maintainers/r.baussenwein)

---

Top Contributors

[![rabauss](https://avatars.githubusercontent.com/u/14016098?v=4)](https://github.com/rabauss "rabauss (62 commits)")

---

Tags

databasebackupdumpsqlcontaobackend

### Embed Badge

![Health badge](/badges/bwein-net-contao-database-backup/health.svg)

```
[![Health](https://phpackages.com/badges/bwein-net-contao-database-backup/health.svg)](https://phpackages.com/packages/bwein-net-contao-database-backup)
```

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M388](/packages/easycorp-easyadmin-bundle)[symfony/framework-bundle

Provides a tight integration between Symfony components and the Symfony full-stack framework

3.6k251.7M11.6k](/packages/symfony-framework-bundle)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

9421.6k61](/packages/open-dxp-opendxp)[chameleon-system/chameleon-base

The Chameleon System core.

1028.6k5](/packages/chameleon-system-chameleon-base)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M577](/packages/shopware-core)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.5k5.9M738](/packages/sylius-sylius)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
