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

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

rashed/database-backup
======================

database automatic backup on user's disk

1218PHP

Since Aug 9Pushed 9y ago1 watchersCompare

[ Source](https://github.com/shuvrow/database-backup)[ Packagist](https://packagist.org/packages/rashed/database-backup)[ RSS](/packages/rashed-database-backup/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

DB-Backup
=========

[](#db-backup)

Database Auto Backup For Laravel 5.2 users ##Installation

Db-backup is a laravel package. You can install it via composer.In your project directory run following command:

`composer require 'rashed/database-backup':'dev-master'`

\##Configuration

Set directory for database backup on web server.Add **DB\_BACKUP** on **.env** file as follow

\####DB\_BACKUP=directory\_name

When download is completed, add following line on **app.php** file in **providers** section

```
\Rashed\Backup\DbBackupServiceProvider::class,

```

\###publish

Now run following command from terminal

```
php artisan config:clear
composer dump-autoload -o

```

This will publish all necessary file for this package.

Now on **app/Providers/EventServiceProvider.php** file add following lines in **$listen** variable.

```
'Rashed\Backup\Events\DbBackupEvent' => [
        'Rashed\Backup\Listeners\DbBackupEventListener',
    ],

```

Usages
------

[](#usages)

```
Event::fire(new \Rashed\Backup\Events\DbBackupEvent());

```

> **Note:**

> - Use this event to export database in your local disk.
> - This event store database on user's machine and remove it from server.
> - If you want to store database on server periodically Make sure your configure it first.[ Schedule Backup](#schedule-backup) .

\####schedule-backup

This option required configuration for db auto backup on server using task scheduling. To use this option you have to add a cron entry on your server.

```
* * * * * php /path/to/artisan schedule:run >> /dev/null 2>&1

```

After adding this, add following line on **app/Console/kernel.php** file:

```
use Rashed\Backup\Commands\Backup;

```

and add following line in **$commands** variable

```
Backup::class,

```

And on `schedule()` function add scheduler as your requirements.

For example if you want to backup your database after every 30 minutes write following code

```
$schedule->command('Backup')->everyThirtyMinutes();

```

backup your database after every 10 minutes , write following code :

```
$schedule->command('Backup')->everyTenMinutes();

```

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5785569?v=4)[Md.Rashedul Hoque Bhuiyan](/maintainers/shuvrow)[@shuvrow](https://github.com/shuvrow)

---

Top Contributors

[![shuvrow](https://avatars.githubusercontent.com/u/5785569?v=4)](https://github.com/shuvrow "shuvrow (10 commits)")

### Embed Badge

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

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

###  Alternatives

[venveo/craft-compress

Create smart zip files from Craft assets on the fly

124.7k](/packages/venveo-craft-compress)

PHPackages © 2026

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