PHPackages                             medvesekg/laravel-database-backups - 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. medvesekg/laravel-database-backups

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

medvesekg/laravel-database-backups
==================================

Database backups for Laravel

v0.1.3(6y ago)032[3 PRs](https://github.com/medvesekg/laravel-database-backups/pulls)PHP

Since Oct 23Pushed 3y ago1 watchersCompare

[ Source](https://github.com/medvesekg/laravel-database-backups)[ Packagist](https://packagist.org/packages/medvesekg/laravel-database-backups)[ RSS](/packages/medvesekg-laravel-database-backups/feed)WikiDiscussions master Synced today

READMEChangelog (4)Dependencies (3)Versions (8)Used By (0)

Database backups for Laravel
============================

[](#database-backups-for-laravel)

Easily perform database backups in Laravel.

Quickstart
----------

[](#quickstart)

`composer require medvesekg/laravel-database-backups`

`php artisan db:backup`

Assuming a default Laravel installation this will create a backup in the `storage/app` directory

Requirements
------------

[](#requirements)

- mysqldump for mysql
- pgdump for postgres

Configuration
-------------

[](#configuration)

In `config/database.php` at the root level add:

```
'backups' => [
    'disk' => 'local',
    'frequency' => 'daily',
    'retention' => 'two weeks'
]
```

### Disk

[](#disk)

The Laravel disk where you want to store the backups. I recommend creating a seperate disk for backups in `config/filesystems.php`. You can use any driver supported by Laravel.

### Frequency

[](#frequency)

How frequently do you want to perform backups. Accepted values are names of Laravel's schedule methods e.g. *daily*, *weekly*, *monthly* see  for reference.

For automatic backups to work you need to set up Laravel's scheduler. Refer to Laravel documentation.

### Retention

[](#retention)

How long do you want to keep old backups for. Accepted values are anything Carbon datetime library can parse. See  for reference. Examples: *two weeks*

For automatic cleaning of old backups you need to set up Laravel's scheduler. Refer to Laravel documentation.

Artisan commands
----------------

[](#artisan-commands)

The package adds two Artisan commands

- `php artisan db:backup` Creates a new backup
- `php artisan db:backup:clean` Deletes backups older than the retention policy

Supported database drivers
--------------------------

[](#supported-database-drivers)

- Mysql
- Postgres
- Sqlite

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity52

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

Every ~9 days

Total

4

Last Release

2365d ago

### Community

Maintainers

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

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/medvesekg-laravel-database-backups/health.svg)

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

###  Alternatives

[anourvalar/eloquent-serialize

Laravel Query Builder (Eloquent) serialization

11320.2M21](/packages/anourvalar-eloquent-serialize)[overtrue/laravel-versionable

Make Laravel model versionable.

585308.0k5](/packages/overtrue-laravel-versionable)[abbasudo/laravel-purity

elegant way to add filter and sort in laravel

514330.5k1](/packages/abbasudo-laravel-purity)[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

135192.6k5](/packages/statamic-rad-pack-runway)[dragon-code/laravel-deploy-operations

Performing any actions during the deployment process

240173.5k2](/packages/dragon-code-laravel-deploy-operations)[stayallive/laravel-eloquent-observable

Register Eloquent model event listeners just-in-time directly from the model.

2928.9k7](/packages/stayallive-laravel-eloquent-observable)

PHPackages © 2026

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