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(4mo ago)321.2k↑12.5%2MITPHPPHP ^8.2

Since Aug 14Pushed 3mo 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 1mo 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

55

—

FairBetter than 98% of packages

Maintenance78

Regular maintenance activity

Popularity30

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

142d 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

[sylius/sylius

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

8.4k5.6M651](/packages/sylius-sylius)[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k16.7M310](/packages/easycorp-easyadmin-bundle)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)

PHPackages © 2026

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