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

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

exolnet/laravel-backup-database
===============================

Expend laravel-backup by adding a simple command to backup a database.

v1.11.0(3mo ago)038.7k↓25.5%MITPHPPHP ^8.2CI passing

Since Aug 17Pushed 3mo ago3 watchersCompare

[ Source](https://github.com/eXolnet/laravel-backup-database)[ Packagist](https://packagist.org/packages/exolnet/laravel-backup-database)[ Docs](https://github.com/eXolnet/laravel-backup-database)[ RSS](/packages/exolnet-laravel-backup-database/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (7)Versions (16)Used By (0)

Laravel Backup Database
=======================

[](#laravel-backup-database)

[![Latest Release](https://camo.githubusercontent.com/8eb422c4afc1a133d650f781d8b7eab3fcfc6557a6c76e2f57c1b96b9960e768/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f65586f6c6e65742f6c61726176656c2d6261636b75702d64617461626173652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/eXolnet/laravel-backup-database)[![Total Downloads](https://camo.githubusercontent.com/f9c961c1b3a2f4c89d516b638ac3c2abf01dcc76a187d6392488fb60c9921829/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f65586f6c6e65742f6c61726176656c2d6261636b75702d64617461626173652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/eXolnet/laravel-backup-database)[![Build Status](https://camo.githubusercontent.com/14886a770b74749dac643650fd73398619b05cc3e6cf5203d234570b1e73355e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f65586f6c6e65742f6c61726176656c2d6261636b75702d64617461626173652f74657374732e796d6c3f6c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/eXolnet/laravel-backup-database/actions?query=workflow%3Atests)[![Software License](https://camo.githubusercontent.com/0e7fb06301e2a8a7aef2ece08539e06255171da1b21877d4c1a36bb45572896a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d3834363961642e7376673f7374796c653d666c61742d737175617265)](LICENSE)

Expend laravel-backup by adding a simple command to backup a database. No configuration required!

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

[](#installation)

Require this package with composer:

```
composer require exolnet/laravel-backup-database
```

If you don't use package auto-discovery, add the service provider to the `providers` array in `config/app.php`:

```
Exolnet\Backup\BackupServiceProvider::class
```

Usage
-----

[](#usage)

```
Usage:
  backup:database [options] [--] []

Arguments:
  filename                       Custom filename to use instead of the generated one

Options:
      --connection[=CONNECTION]  Connection to use instead of the default one
      --path[=PATH]              Path where to dump the database instead of the current directory
  -h, --help                     Display this help message
  -q, --quiet                    Do not output any message
  -V, --version                  Display this application version
      --ansi                     Force ANSI output
      --no-ansi                  Disable ANSI output
  -n, --no-interaction           Do not ask any interactive question
      --env[=ENV]                The environment the command should run under
  -v|vv|vvv, --verbose           Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug

Help:
  Backup (dump) the database.

```

Examples
--------

[](#examples)

To dump the default database, run:

```
php artisan backup:database
```

To dump the default database with a custom filename, run:

```
php artisan backup:database my_filename.sql.gz
```

To dump the default database to a custom path, run:

```
php artisan backup:database --path=/path/to/the/backup/directory
```

To dump an other database, run:

```
php artisan backup:database --connection=sqlite
```

Testing
-------

[](#testing)

To run the phpUnit tests, please use:

```
composer test
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CODE OF CONDUCT](CODE_OF_CONDUCT.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Patricia Gagnon-Renaud](https://github.com/pgrenaud)
- [Alexandre D'Eschambeault](https://github.com/xel1045)
- [Simon Gaudreau](https://github.com/Gandhi11)
- [All Contributors](../../contributors)

License
-------

[](#license)

Copyright © [eXolnet](https://www.exolnet.com). All rights reserved.

This code is licensed under the [MIT license](http://choosealicense.com/licenses/mit/). Please see the [license file](LICENSE) for more information.

###  Health Score

55

—

FairBetter than 98% of packages

Maintenance81

Actively maintained with recent releases

Popularity28

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity82

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 67.9% 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 ~210 days

Recently: every ~280 days

Total

14

Last Release

101d ago

PHP version history (6 changes)v1.0.0PHP &gt;=7.1

v1.2.0PHP &gt;=7.2

v1.4.0PHP ^7.3|^8.0

v1.6.0PHP ^8.0

v1.9.0PHP ^8.1

v1.10.0PHP ^8.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4064055?v=4)[eXolnet](/maintainers/exolnet)[@eXolnet](https://github.com/eXolnet)

---

Top Contributors

[![xel1045](https://avatars.githubusercontent.com/u/1497697?v=4)](https://github.com/xel1045 "xel1045 (57 commits)")[![pgrenaud](https://avatars.githubusercontent.com/u/10713979?v=4)](https://github.com/pgrenaud "pgrenaud (12 commits)")[![Gandhi11](https://avatars.githubusercontent.com/u/4001049?v=4)](https://github.com/Gandhi11 "Gandhi11 (7 commits)")[![ChristopheTremblay](https://avatars.githubusercontent.com/u/61481239?v=4)](https://github.com/ChristopheTremblay "ChristopheTremblay (6 commits)")[![clablancherie-exo](https://avatars.githubusercontent.com/u/214526504?v=4)](https://github.com/clablancherie-exo "clablancherie-exo (1 commits)")[![hjexolnet](https://avatars.githubusercontent.com/u/119355925?v=4)](https://github.com/hjexolnet "hjexolnet (1 commits)")

---

Tags

backupdatabasehacktoberfestlaravellaravel-packagephplaraveldatabasebackupexolnet

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[spatie/laravel-backup

A Laravel package to backup your application

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

ClickHouse migrations for Laravel

163166.8k](/packages/cybercog-laravel-clickhouse)[toponepercent/baum

Baum is an implementation of the Nested Set pattern for Eloquent models.

3154.7k](/packages/toponepercent-baum)[cornford/backup

An easy way backup and restore databases in Laravel.

4225.6k](/packages/cornford-backup)

PHPackages © 2026

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