PHPackages                             a2design-inc/laravel-db-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. a2design-inc/laravel-db-backup

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

a2design-inc/laravel-db-backup
==============================

Artisan command for backup Laravel application database

1.0.2(8y ago)41061[1 PRs](https://github.com/a2design-inc/laravel-db-backup/pulls)MITPHP

Since Dec 19Pushed 6y ago6 watchersCompare

[ Source](https://github.com/a2design-inc/laravel-db-backup)[ Packagist](https://packagist.org/packages/a2design-inc/laravel-db-backup)[ Docs](https://github.com/a2design-inc/laravel-db-backup)[ RSS](/packages/a2design-inc-laravel-db-backup/feed)WikiDiscussions master Synced yesterday

READMEChangelog (3)DependenciesVersions (4)Used By (0)

Artisan command for backup Laravel application database
=======================================================

[](#artisan-command-for-backup-laravel-application-database)

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

[](#installation)

You can install this package via composer using:

```
composer require a2design-inc/laravel-db-backup
```

Register the provider (config/app.php) for Laravel &lt; 5.5 or if you don't use auto-discovery:

```
'providers' => [
    ...
    /*
     * Package Service Providers...
     */
    A2design\DbBackup\DbBackupServiceProvider::class,
    ...
],
```

Usage
-----

[](#usage)

For backup the database use next command

```
php artisan db:backup
```

Also you can list all existed backups (for example before restore) using next command

```
php artisan db:backups-list
```

And for restore backup use next command

```
php artisan db:restore
```

By default this command will use latest backup, but you can provide filename of existed backup

```
php artisan db:restore 2017-12-17.sql[.gz]
```

In this case using compression will be detected automatically.

Scheduling
----------

[](#scheduling)

The commands can, like an other command, be scheduled in Laravel's console kernel.

```
// app/Console/Kernel.php

protected function schedule(Schedule $schedule)
{
   $schedule->command('db:backup')->daily()->at('00:00');
}
```

Of course, the schedules used in the code above are just an example. Adjust them to your own preferences.

License
-------

[](#license)

Licensed under The [MIT](LICENCE.md) License

Developed by [A2 Design Inc.](http://www.a2design.biz)

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 75% 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 ~14 days

Total

3

Last Release

3087d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/18dd207483a4ff5272a672f9a85618fd21ee3785e91d5865658928d31f4a5e1a?d=identicon)[MrMYSTIC](/maintainers/MrMYSTIC)

---

Top Contributors

[![MrMYSTIC](https://avatars.githubusercontent.com/u/1566816?v=4)](https://github.com/MrMYSTIC "MrMYSTIC (3 commits)")[![alexdets](https://avatars.githubusercontent.com/u/536255?v=4)](https://github.com/alexdets "alexdets (1 commits)")

---

Tags

laravelbackupcommand

### Embed Badge

![Health badge](/badges/a2design-inc-laravel-db-backup/health.svg)

```
[![Health](https://phpackages.com/badges/a2design-inc-laravel-db-backup/health.svg)](https://phpackages.com/packages/a2design-inc-laravel-db-backup)
```

###  Alternatives

[zanysoft/laravel-zip

laravel-zip is the world's leading zip utility for file compression and backup.

3142.9M15](/packages/zanysoft-laravel-zip)[bringyourownideas/laravel-backblaze

Backblaze B2 Cloud Storage for Laravel 5. Original by Paul Olthof (@hpolthof) continued by @bringyourownideas

1238.4k](/packages/bringyourownideas-laravel-backblaze)[menthe/aliyun-ueditor

UEditor for laravel5 and Aliyun OSS.Store all images and files in Aliyun OSS. Support i18n. UEditor is a Rich Text Web Editor From Baidu.

182.4k](/packages/menthe-aliyun-ueditor)

PHPackages © 2026

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