PHPackages                             andreas-a/backup-database-bundle - 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. [File &amp; Storage](/categories/file-storage)
4. /
5. andreas-a/backup-database-bundle

AbandonedArchivedSymfony-bundle[File &amp; Storage](/categories/file-storage)

andreas-a/backup-database-bundle
================================

A Symfony bundle that provides a command to easily backup databases.

1.0.2(3y ago)06.7kMITPHPPHP ^7.3 || ^8.0

Since Sep 1Pushed 7mo ago1 watchersCompare

[ Source](https://github.com/AndreasA/backup-database-bundle)[ Packagist](https://packagist.org/packages/andreas-a/backup-database-bundle)[ RSS](/packages/andreas-a-backup-database-bundle/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (8)Versions (5)Used By (0)

Backup database bundle
======================

[](#backup-database-bundle)

**This bundle is not maintained anymore!**

General
-------

[](#general)

A Symfony bundle that provides a command to easily backup databases.

**Note**: For now only MySQL is supported. It should also support MariaDB, but that has not been verified.

Requirements
------------

[](#requirements)

- See `composer.json` for most dependencies.
- A Unix-like OS.
- The following commands:
    - `mkfifo`
    - `mysqldump`
    - `bzip2`
- For now the above commands have to be available globally in the current path configuration in the corresponding shell used by the `symfony/process` component, so they can be called without requiring the absolute path.

Setup
-----

[](#setup)

- Add `AndreasA\BackupDatabaseBundle\AndreasABackupDatabaseBundle::class => ['all' => true],` to `config/bundles.php`, if it has not been added by `symfony/flex` already.
- Add the file `config/packages/andreas_a_backup_database.yaml` with a content like (example configuration): ```
    andreas_a_backup_database:
        database_url: '%env(resolve:DATABASE_URL)%'
        target_directory: '%kernel.project_dir%/var/backup'
        mysql:
            ignored_tables:
                - 'cache_items'
            options:
                - 'default-character-set=utf8mb4'
                - 'hex-blob'
                - 'no-tablespaces'
                - 'opt'
                - 'routines'
                - 'triggers'
            platform_specific_options:
                - 'column-statistics=0'
                - 'skip-column-statistics'
    ```

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

[](#configuration)

- `database_url`: The URL to the database.
- `target_directory`: The directory where the backups are placed. Those files include the current date and time in their filenames.
- `mysql`: Specific options for MySQL backups.
    - `ignored_tables`: Tables to be ignored during backup. Can also be set to `[]`, if no tables should be ignored.
    - `options`: These options are used during backup and provided using the MySQL configuration file syntax. The `mysqldump` command has to support these options. Can also be set to `[]`, if no additional options are necessary.
    - `platform_specific_options`: Basically the same as `options` but here the bundle first checks if the `mysqldump` command supports these options. This is relevant, if you do not know the used `mysqldump` version. Can also be set to `[]`, if no platform specific options are necessary.

Command
-------

[](#command)

The bundle provides the Symfony command `andreas-a:backup:database`. It uses the configuration above to create a database backup and can e.g. be used during deployments.

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance44

Moderate activity, may be stable

Popularity20

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 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 ~0 days

Total

3

Last Release

1355d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/44d4500f98e7f563385e018ccbeaee8785b1efd29acc166d21f404a351b08bf7?d=identicon)[AndreasA](/maintainers/AndreasA)

---

Top Contributors

[![AndreasA](https://avatars.githubusercontent.com/u/1383094?v=4)](https://github.com/AndreasA "AndreasA (9 commits)")

### Embed Badge

![Health badge](/badges/andreas-a-backup-database-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/andreas-a-backup-database-bundle/health.svg)](https://phpackages.com/packages/andreas-a-backup-database-bundle)
```

###  Alternatives

[sylius/sylius

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

8.4k5.6M651](/packages/sylius-sylius)[symfony/maker-bundle

Symfony Maker helps you create empty commands, controllers, form classes, tests and more so you can forget about writing boilerplate code.

3.4k111.1M568](/packages/symfony-maker-bundle)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[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)[simplesamlphp/simplesamlphp

A PHP implementation of a SAML 2.0 service provider and identity provider.

1.1k12.4M193](/packages/simplesamlphp-simplesamlphp)

PHPackages © 2026

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