PHPackages                             branlute/backup-manager-symfony - 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. branlute/backup-manager-symfony

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

branlute/backup-manager-symfony
===============================

A simple database backup manager for Symfony2 with support for S3, Rackspace, Dropbox, FTP, SFTP.

4.0.0(3y ago)023MITPHPPHP ^7.3 || ^8.0

Since Sep 7Pushed 3y agoCompare

[ Source](https://github.com/Branlute/symfony)[ Packagist](https://packagist.org/packages/branlute/backup-manager-symfony)[ RSS](/packages/branlute-backup-manager-symfony/feed)WikiDiscussions custom Synced yesterday

READMEChangelog (2)Dependencies (14)Versions (17)Used By (0)

BackupManagerBundle
===================

[](#backupmanagerbundle)

[![Latest Stable Version](https://camo.githubusercontent.com/725fbcd21630c50dcf3cf9d46d6670f00ba28219d6f847a2f6b15ac94aba039e/68747470733a2f2f706f7365722e707567782e6f72672f6261636b75702d6d616e616765722f73796d666f6e792f76657273696f6e2e706e67)](https://packagist.org/packages/backup-manager/symfony)[![License](https://camo.githubusercontent.com/ff547600560942ed5a69e3b8047e027873a0d6df33604491c5e282521ce1028a/68747470733a2f2f706f7365722e707567782e6f72672f6261636b75702d6d616e616765722f73796d666f6e792f6c6963656e73652e706e67)](https://packagist.org/packages/backup-manager/symfony)[![Build Status](https://camo.githubusercontent.com/a1139c84634384de2a7ef2136729c28da2f643b155508b6e2a65f567362f7ef2/68747470733a2f2f7472617669732d63692e6f72672f6261636b75702d6d616e616765722f73796d666f6e792e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/backup-manager/symfony)[![Total Downloads](https://camo.githubusercontent.com/d0c7bb29df9b5f80173cb58db5a540ab52b55ef0158273a238994e9b2add00b0/68747470733a2f2f706f7365722e707567782e6f72672f6261636b75702d6d616e616765722f73796d666f6e792f646f776e6c6f6164732e706e67)](https://packagist.org/packages/backup-manager/symfony)

A simple database backup manager for Symfony with support for S3, Rackspace, Dropbox, FTP, SFTP.

This package pulls in the framework agnostic [Backup Manager](https://github.com/backup-manager/backup-manager) and provides seamless integration with **Symfony**.

Installation
============

[](#installation)

Step 1: Download the Bundle
---------------------------

[](#step-1-download-the-bundle)

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

```
$ composer require backup-manager/symfony
```

This command requires you to have Composer installed globally, as explained in the [installation chapter](https://getcomposer.org/doc/00-intro.md)of the Composer documentation.

Step 2 (with Flex): Enable the Bundle
-------------------------------------

[](#step-2-with-flex-enable-the-bundle)

You do not need to do anything more. The bundle is enabled automatically and you have some nice default config in `config/packages/bm_backup_manager.yml`.

Step 2 (no Flex): Enable the Bundle
-----------------------------------

[](#step-2-no-flex-enable-the-bundle)

If you are not using Symfony Flex, you need to enable the bundle by adding it to the list of registered bundles in the `app/AppKernel.php` file of your project.

```
// config/bundles.php

return [
    BM\BackupManagerBundle\BMBackupManagerBundle::class => ['all' => true],
    // ...
];
```

Step 3: Configure your databases and filesystems
------------------------------------------------

[](#step-3-configure-your-databases-and-filesystems)

```
# config/packages/bm_backup_manager.yml

bm_backup_manager:
    database:
        development:
            type: mysql
            host: localhost
            port: 3306
            user: root
            pass: password
            database: test
            ignoreTables: ['foo', 'bar']

            # If DSN is specified, it will override other values
            dsn: 'mysql://root:root_pass@127.0.0.1:3306/test_db'
        production:
            type: postgresql
            host: localhost
            port: 5432
            user: postgres
            pass: password
            database: test

            # You could also use a environment variable
            dsn: '%env(resolve:DATABASE_URL)%'
    storage:
        local:
            type: Local
            root: /path/to/working/directory
        s3:
            type: AwsS3
            key:
            secret:
            region: us-east-1
            version: latest
            bucket:
            root:
        b2:
            type: B2
            key:
            accountId:
            bucket:
        rackspace:
            type: Rackspace
            username:
            password:
            container:
        dropbox:
            type: DropboxV2
            token:
            key:
            secret:
            app:
            root:
        ftp:
            type: Ftp
            host:
            username:
            password:
            root:
            port: 21
            passive: true
            ssl: true
            timeout: 30
        sftp:
            type: Sftp
            host:
            username:
            password:
            root:
            port: 21
            timeout: 10
            privateKey:
```

Usage
=====

[](#usage)

To backup from any configured database.
---------------------------------------

[](#to-backup-from-any-configured-database)

Backup the development database to `Amazon S3`. The S3 backup path will be `test/backup.sql.gz` in the end, when `gzip` is done with it.

```
class Foo {
  private $backupManager;

  public function __construct(BackupManager $backupManager) {
      $this->backupManager = $backupManager;
  }

  public function bar() {
      $this->backupManager->makeBackup()->run('development', [new Destination('s3', 'test/backup.sql')], 'gzip');
  }
}
```

Or with a command:

```
php bin/console backup-manager:backup development s3 -c gzip --filename test/backup.sql
```

To restore from any configured filesystem.
------------------------------------------

[](#to-restore-from-any-configured-filesystem)

Restore the database file `test/backup.sql.gz` from `Amazon S3` to the `development` database.

```
class Foo {
  private $backupManager;

  public function __construct(BackupManager $backupManager) {
      $this->backupManager = $backupManager;
  }

  public function bar() {
      $this->backupManager->makeRestore()->run('s3', 'test/backup.sql.gz', 'development', 'gzip');
  }
}
```

Or with a command:

```
php bin/console backup-manager:restore development s3 test/backup.sql.gz -c gzip
```

> This package does not allow you to backup from one database type and restore to another. A MySQL dump is not compatible with PostgreSQL.

Requirements
============

[](#requirements)

- PHP 7.3
- MySQL support requires `mysqldump` and `mysql` command-line binaries
- PostgreSQL support requires `pg_dump` and `psql` command-line binaries
- Gzip support requires `gzip` and `gunzip` command-line binaries

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity76

Established project with proven stability

 Bus Factor1

Top contributor holds 63.4% 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 ~192 days

Recently: every ~203 days

Total

15

Last Release

1213d ago

Major Versions

v1.1 → 2.0.02018-01-28

2.3.0 → 3.0.02020-05-08

3.2.1 → 4.0.02023-01-15

PHP version history (5 changes)v1.0PHP &gt;=5.5

2.0.0PHP ^5.5 || ^7.0

2.3.0PHP ^7.2

3.0.0PHP ^7.3

4.0.0PHP ^7.3 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/61c8ef8e582f46d9a2aa1208df611e1f6236ce276ff293a2c0042cdd869b1b1e?d=identicon)[tlanquetin](/maintainers/tlanquetin)

---

Top Contributors

[![Nyholm](https://avatars.githubusercontent.com/u/1275206?v=4)](https://github.com/Nyholm "Nyholm (45 commits)")[![Branlute](https://avatars.githubusercontent.com/u/11363550?v=4)](https://github.com/Branlute "Branlute (4 commits)")[![mscharl](https://avatars.githubusercontent.com/u/1411972?v=4)](https://github.com/mscharl "mscharl (4 commits)")[![lhpalacio](https://avatars.githubusercontent.com/u/2530250?v=4)](https://github.com/lhpalacio "lhpalacio (2 commits)")[![nmeirik](https://avatars.githubusercontent.com/u/201293?v=4)](https://github.com/nmeirik "nmeirik (2 commits)")[![ymezard](https://avatars.githubusercontent.com/u/5071153?v=4)](https://github.com/ymezard "ymezard (2 commits)")[![lcp0578](https://avatars.githubusercontent.com/u/10859621?v=4)](https://github.com/lcp0578 "lcp0578 (1 commits)")[![benr77](https://avatars.githubusercontent.com/u/2156742?v=4)](https://github.com/benr77 "benr77 (1 commits)")[![Piskvor](https://avatars.githubusercontent.com/u/917239?v=4)](https://github.com/Piskvor "Piskvor (1 commits)")[![Shivoham](https://avatars.githubusercontent.com/u/1434539?v=4)](https://github.com/Shivoham "Shivoham (1 commits)")[![trsteel88](https://avatars.githubusercontent.com/u/869933?v=4)](https://github.com/trsteel88 "trsteel88 (1 commits)")[![wartab](https://avatars.githubusercontent.com/u/9607577?v=4)](https://github.com/wartab "wartab (1 commits)")[![mavinbe](https://avatars.githubusercontent.com/u/13540771?v=4)](https://github.com/mavinbe "mavinbe (1 commits)")[![cklm](https://avatars.githubusercontent.com/u/466021?v=4)](https://github.com/cklm "cklm (1 commits)")[![hason](https://avatars.githubusercontent.com/u/288535?v=4)](https://github.com/hason "hason (1 commits)")[![InnerFlameFact](https://avatars.githubusercontent.com/u/8267934?v=4)](https://github.com/InnerFlameFact "InnerFlameFact (1 commits)")[![jsunier](https://avatars.githubusercontent.com/u/7212435?v=4)](https://github.com/jsunier "jsunier (1 commits)")[![karser](https://avatars.githubusercontent.com/u/1675033?v=4)](https://github.com/karser "karser (1 commits)")

---

Tags

ftpsymfonys3sftpdatabasebackupdropboxrackspace

### Embed Badge

![Health badge](/badges/branlute-backup-manager-symfony/health.svg)

```
[![Health](https://phpackages.com/badges/branlute-backup-manager-symfony/health.svg)](https://phpackages.com/packages/branlute-backup-manager-symfony)
```

###  Alternatives

[backup-manager/symfony

A simple database backup manager for Symfony2 with support for S3, Rackspace, Dropbox, FTP, SFTP.

119293.7k3](/packages/backup-manager-symfony)[sylius/sylius

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

8.4k5.6M651](/packages/sylius-sylius)[sulu/sulu

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

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

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

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

The Shopware e-commerce core

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

PHPackages © 2026

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