PHPackages                             nkt/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. [Database &amp; ORM](/categories/database)
4. /
5. nkt/backup-bundle

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

nkt/backup-bundle
=================

Symfony bundle for backup your database data

0.1(11y ago)1991MITPHPPHP ~5.3

Since May 25Pushed 11y agoCompare

[ Source](https://github.com/nkt/backup-bundle)[ Packagist](https://packagist.org/packages/nkt/backup-bundle)[ Docs](http://nkt.github.io/backup-bundle/)[ RSS](/packages/nkt-backup-bundle/feed)WikiDiscussions master Synced 4d ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

Backup bundle
=============

[](#backup-bundle)

[![Latest Stable Version](https://camo.githubusercontent.com/6f73e475a9f66ee93d5785143b54a3fe8e77ebf40978b773ffb7262ff3e12560/68747470733a2f2f706f7365722e707567782e6f72672f6e6b742f6261636b75702d62756e646c652f762f737461626c652e737667)](https://packagist.org/packages/nkt/backup-bundle) [![Total Downloads](https://camo.githubusercontent.com/6879379df1d68ab2978879de65f1443cf78671ced0538b9dc72e8343271826fa/68747470733a2f2f706f7365722e707567782e6f72672f6e6b742f6261636b75702d62756e646c652f646f776e6c6f6164732e737667)](https://packagist.org/packages/nkt/backup-bundle) [![Latest Unstable Version](https://camo.githubusercontent.com/938cc3752ee3c7396458373e7b301495da2986aff789956ce42eb93785e85f8e/68747470733a2f2f706f7365722e707567782e6f72672f6e6b742f6261636b75702d62756e646c652f762f756e737461626c652e737667)](https://packagist.org/packages/nkt/backup-bundle) [![License](https://camo.githubusercontent.com/b4355fee83cd397ee5ed5295ec68bf167c976bb80b504698d1893c96a0da5a6c/68747470733a2f2f706f7365722e707567782e6f72672f6e6b742f6261636b75702d62756e646c652f6c6963656e73652e737667)](https://packagist.org/packages/nkt/backup-bundle)

Usage
-----

[](#usage)

Add `"nkt/backup-bundle": "1.0.x-dev"` into composer.json.

Add `Nkt\BackupBundle\NktBackupBundle` into your kernel bundles.

Now you can add new cron job, for backup your application:

```
0 */6 * * * /path/to/app/console doctrine:database:backup --gzip=-9
```

You can also restore any backup using

```
/path/to/app/console doctrine:database:restore /path/to/app/backup/backupname.sql.gz
```

Backup options
--------------

[](#backup-options)

Backup filename contains driver name, database name and date. You can change date pattern (by default `Y-m-d-H-i-s`) using `--date-pattern` option.

If you using multiply connections, specify it using `--connection` option or `-c` flag.

By default all backups saves into `path/to/app/backups`, you can change it using `--destination` option or `-d` flag.

As you can see in example, you can compress backups using `--gzip` option. This option required value, you have to specify compress quality.

Restore options
---------------

[](#restore-options)

Restore command required filename by first argument. It also support change connection with `--connection` option or `-c` flag.

You don't have to specify gzipped file. Command checks does filename ends with `.gz` and decompress it.

License
-------

[](#license)

MIT

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

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

Unknown

Total

1

Last Release

4374d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e6d118888226cce791825447185d662b37874fb3b08cccc3be44d9b911cc2b09?d=identicon)[nkt](/maintainers/nkt)

---

Tags

backup

### Embed Badge

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

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

###  Alternatives

[spatie/laravel-backup

A Laravel package to backup your application

6.0k21.8M191](/packages/spatie-laravel-backup)[phpbu/phpbu

PHP Backup utility.

1.3k89.0k4](/packages/phpbu-phpbu)[pavel-mironchik/laravel-backup-panel

An interface for Spatie Laravel Backup package

41469.6k1](/packages/pavel-mironchik-laravel-backup-panel)[backup-manager/symfony

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

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

Zero-dependency MySQL dump library for easily exporting and importing databases

64401.8k10](/packages/rah-danpu)[beaten-sect0r/yii2-db-manager

The db dump manager module for Yii2

9344.1k1](/packages/beaten-sect0r-yii2-db-manager)

PHPackages © 2026

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