PHPackages                             damascene/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. damascene/database-backup

AbandonedArchivedProject[Database &amp; ORM](/categories/database)

damascene/database-backup
=========================

This is just a small CLI app which will create a backup from your database

0.1.6(6y ago)2019MITPHPPHP &gt;=7.0.0

Since Jun 11Pushed 3y agoCompare

[ Source](https://github.com/zaherg/database-backup)[ Packagist](https://packagist.org/packages/damascene/database-backup)[ Fund](https://tippin.me/@zaherg)[ RSS](/packages/damascene-database-backup/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (2)Dependencies (12)Versions (20)Used By (0)

Database backup CLI app [![](https://camo.githubusercontent.com/b95974c0d578afc5e0dffa0f524db819120361ec1831642f102407dd32bff832/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f73706f6e736f722d7573696e672532304254432532306c696768746e696e672532306e6574776f726b2d626c75652e737667)](https://tippin.me/@zaherg)
============================================================================================================================================================================================================================================================================================================================

[](#database-backup-cli-app--)

PS: This work was inspired by many people around me, especially [backmeup](https://github.com/Ardakilic/backmeup) which was created by [Arda Kılıçdağı](https://github.com/Ardakilic).

The idea
--------

[](#the-idea)

I wanted to have a small cli app that I can use to backup my databases whenever I need and with simple modifications, so I tried bach/shell and I didn't like it.

So to make the story short this is what I have done so far, this is just a small backup cli app that you can use on your server and run it via cron jobs to create a backup for all your databases or for one of them if you pass it as a parameter.

Currently implemented backup drivers:
-------------------------------------

[](#currently-implemented-backup-drivers)

1. Local backup.
2. Dropbox.
3. Amazon.

Installation
------------

[](#installation)

### Requirement

[](#requirement)

Remember that you need to have composer installed locally, if its not installed locally you can get it from [getcomposer.org](https://getcomposer.org/)

### Via git clone

[](#via-git-clone)

Right now the best way to install it is to clone the repository

```
git clone https://github.com/linuxjuggler/database-backup.git

```

then execute the following commands

```
cd database-backup
composer install
```

### Via composer

[](#via-composer)

You can install it using composer by executing the following command:

```
composer create-project damascene/database-backup
```

### Via composer (globally)

[](#via-composer-globally)

You can install it using composer by executing the following command:

```
composer global require damascene/database-backup
```

*PS: if you run it globally you can just use `backup` instead of `./bin/backup`.*

### Using the phar file

[](#using-the-phar-file)

We distribute a PHP Archive (PHAR) that has all dependencies (including the suggested) of database backup bundled in a single file. You can find the file under the assets of each [release](https://github.com/linuxjuggler/database-backup/releases).

After downloading the file remember to run the following commands:

```
$ mv backup ./bin/backup
$ chmod u+x backup
```

Usage
-----

[](#usage)

- You should create the configuration file using the command:

```
./bin/backup init
```

You will be asked for few questions which the app is going to use them later.

- You can start the backup process using the command:

```
./bin/backup db:run --database my_database_name
```

if you didn't pass the database parameter it will backup all the databases.

- you can list all the backup files that you have using the command:

```
./bin/backup db:list
```

Upgrade
-------

[](#upgrade)

Based on how you have install it you can run one of the following commands:

- If installed via git:

from within your code directory run:

```
git pull origin master

```

- If installed via composer:

from within your code directory run:

```
composer update
```

- If installed via composer globally:

```
composer global update
```

- Finally check the file `config.yml.example` for the new updates if you don't want to use the `init` command.

TODO
====

[](#todo)

1. Add Tests

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 58.5% 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 ~71 days

Recently: every ~233 days

Total

15

Last Release

2265d ago

### Community

Maintainers

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

---

Top Contributors

[![zaherg](https://avatars.githubusercontent.com/u/27624?v=4)](https://github.com/zaherg "zaherg (197 commits)")[![dependabot-preview[bot]](https://avatars.githubusercontent.com/in/2141?v=4)](https://github.com/dependabot-preview[bot] "dependabot-preview[bot] (116 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (16 commits)")[![dependabot-support](https://avatars.githubusercontent.com/u/112581971?v=4)](https://github.com/dependabot-support "dependabot-support (8 commits)")

---

Tags

amazon-s3amazon-s3-storagebackupbackup-clibackup-scriptclicomposerdatabasedatabase-backupdropboxlocal-backupsphpsymfony

###  Code Quality

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/damascene-database-backup/health.svg)

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

###  Alternatives

[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[sylius/sylius

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

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

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[drupal/core

Drupal is an open source content management platform powering millions of websites and applications.

19462.3M1.3k](/packages/drupal-core)[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)

PHPackages © 2026

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