PHPackages                             sonntagnacht/backup-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. sonntagnacht/backup-bundle

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

sonntagnacht/backup-bundle
==========================

command to take a snapshot of your project for symfony 2.8+

1.0.15(7y ago)31713[2 issues](https://github.com/sonntagnacht/SNBackupBundle/issues)MITPHPPHP &gt;=5.6

Since Feb 8Pushed 7y ago2 watchersCompare

[ Source](https://github.com/sonntagnacht/SNBackupBundle)[ Packagist](https://packagist.org/packages/sonntagnacht/backup-bundle)[ RSS](/packages/sonntagnacht-backup-bundle/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (10)Dependencies (4)Versions (22)Used By (0)

SNBackupBundle
==============

[](#snbackupbundle)

[![Latest Stable Version](https://camo.githubusercontent.com/e519960bf044c2fbb47f4b02bfd58d005a6e664c0cd00e27858e51554dbadddb/68747470733a2f2f706f7365722e707567782e6f72672f736f6e6e7461676e616368742f6261636b75702d62756e646c652f762f737461626c652e706e67)](https://packagist.org/packages/sonntagnacht/backup-bundle) [![Total Downloads](https://camo.githubusercontent.com/a8cd150ec8626609e8310d307aed5ca0398cacdf4bf2875e2dbf9c17de08f009/68747470733a2f2f706f7365722e707567782e6f72672f736f6e6e7461676e616368742f6261636b75702d62756e646c652f646f776e6c6f6164732e706e67)](https://packagist.org/packages/sonntagnacht/backup-bundle) [![License](https://camo.githubusercontent.com/d15553c7ac808c9301506418ad6d82f466735fd1b2cc81573074175981225f76/68747470733a2f2f706f7365722e707567782e6f72672f736f6e6e7461676e616368742f6261636b75702d62756e646c652f6c6963656e7365)](https://packagist.org/packages/sonntagnacht/backup-bundle)

This BackupBundle can create backups from type daily, weekly, monthly or yearly. It'll save your default database and GaufretteFilesystems to tar.gz-archive in a GaufretteFilesystem.

Installtion
-----------

[](#installtion)

Run `composer require sonntagnacht/backup-bundle` to use SNBackupBundle in your Project.

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

[](#configuration)

Add to `AppKernel.php`

```
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
            new Symfony\Bundle\SecurityBundle\SecurityBundle(),
            new Symfony\Bundle\TwigBundle\TwigBundle(),
            // ...
            new SN\BackupBundle\SNBackupBundle(),
            // ...

        return $bundles;
    }
    // ...
}
```

config.yml

```
knp_gaufrette:
    ...
    filesystems:
        backup_fs:
            adapter: ...

sn_backup:
    target_fs: backup_fs
    databases:
        - mydb                  # name of your doctrine database connection
    include_fs:
        - image_fs              # names of gaufrette filesystems wich should backuped
```

Usage
-----

[](#usage)

To take a backup of your current webapplication (database and gaufrette filesystems)

```
php bin/console sn:backup:dump [daily|weekly|monthly|yearly]

```

For large Backups, we skipped an initial connection check because the connection might get lost until everything is stored in a `tar`If you still want a check if the filesystem exists, execute the backup command with `--check-target-fs`

Get a list of all backups

```
php bin/console sn:backup:restore

```

Restore a saved backup

```
php bin/console sn:backup:restore [id]

```

Delete backups whiche are older than seven days.

```
php bin/console sn:backup:cleanup [daily|weekly|monthly|yearly] 7d

```

WebGUI
------

[](#webgui)

[![webgui](Resources/doc/web_gui.jpg)](Resources/doc/web_gui.jpg)

To use the webgui add following lines to `routing.yml`

```
SNBackupBundle:
    resource: "@SNBackupBundle/Controller/"
    type: annotation
    prefix: /backup
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance7

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 82.1% 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 ~37 days

Recently: every ~112 days

Total

21

Last Release

2637d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/35d7861ab348f8eec53aa5684fce591c55a0c5c8877ad9640ca3c2340361ac30?d=identicon)[sonntagnacht](/maintainers/sonntagnacht)

---

Top Contributors

[![y4roc](https://avatars.githubusercontent.com/u/18329992?v=4)](https://github.com/y4roc "y4roc (92 commits)")[![bartrail](https://avatars.githubusercontent.com/u/293793?v=4)](https://github.com/bartrail "bartrail (20 commits)")

---

Tags

backupbundlegaufrettegaufrette-filesystemphpsymfonysymfony-bundle

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/sonntagnacht-backup-bundle/health.svg)

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

PHPackages © 2026

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