PHPackages                             cp-2012/laravel-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. cp-2012/laravel-backup

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

cp-2012/laravel-backup
======================

A Laravel package to backup your application

7.3.1(5y ago)0166MITPHPPHP ^8.0

Since Feb 18Pushed 5y agoCompare

[ Source](https://github.com/cp-2012/laravel-backup)[ Packagist](https://packagist.org/packages/cp-2012/laravel-backup)[ Docs](https://github.com/spatie/laravel-backup)[ GitHub Sponsors](https://github.com/sponsors/spatie)[ Fund](https://spatie.be/open-source/support-us)[ RSS](/packages/cp-2012-laravel-backup/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (16)Versions (229)Used By (0)

[![Social Card of Laravel Activity Log](/art/socialcard.png)](/art/socialcard.png)

A modern backup solution for Laravel apps
=========================================

[](#a-modern-backup-solution-for-laravel-apps)

[![Latest Stable Version](https://camo.githubusercontent.com/79fc05a9a67b8ede5b3c6c3bfcefee6621d282ef155ca941426dc7601aa19941/68747470733a2f2f706f7365722e707567782e6f72672f7370617469652f6c61726176656c2d6261636b75702f762f737461626c653f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/spatie/laravel-backup)[![MIT Licensed](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![GitHub Tests Action Status](https://camo.githubusercontent.com/b38e4830b99d4f2b6b79bfbb0bcc9daa428678c077cd69e5ac53f724f45490e1/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f7370617469652f6c61726176656c2d6261636b75702f72756e2d74657374733f6c6162656c3d7465737473)](https://camo.githubusercontent.com/b38e4830b99d4f2b6b79bfbb0bcc9daa428678c077cd69e5ac53f724f45490e1/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f7370617469652f6c61726176656c2d6261636b75702f72756e2d74657374733f6c6162656c3d7465737473)[![Quality Score](https://camo.githubusercontent.com/6c6351f09a7e6db5221a157a3fd7d45515de069e3bcaeae75cb8a73a9e6613fe/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f7370617469652f6c61726176656c2d6261636b75702e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/spatie/laravel-backup)[![Total Downloads](https://camo.githubusercontent.com/403c1445259ee25f915ff7f91ed0ffd4977cf5c649800edffbd31881a39a83be/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7370617469652f6c61726176656c2d6261636b75702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/spatie/laravel-backup)

This Laravel package [creates a backup of your application](https://spatie.be/docs/laravel-backup/v7/taking-backups/overview). The backup is a zip file that contains all files in the directories you specify along with a dump of your database. The backup can be stored on [any of the filesystems you have configured in Laravel](https://laravel.com/docs/filesystem).

Feeling paranoid about backups? No problem! You can backup your application to multiple filesystems at once.

Once installed taking a backup of your files and databases is very easy. Just issue this artisan command:

```
php artisan backup:run
```

But we didn't stop there. The package also provides [a backup monitor to check the health of your backups](https://spatie.be/docs/laravel-backup/v7/monitoring-the-health-of-all-backups/overview). You can be [notified via several channels](https://spatie.be/docs/laravel-backup/v7/sending-notifications/overview) when a problem with one of your backups is found. To avoid using excessive disk space, the package can also [clean up old backups](https://spatie.be/docs/laravel-backup/v7/cleaning-up-old-backups/overview).

Support us
----------

[](#support-us)

[![](https://camo.githubusercontent.com/45e05c6def34572f321610e053648def574eff3d88b727ba5fe63ab9cd0c8985/68747470733a2f2f6769746875622d6164732e73332e65752d63656e7472616c2d312e616d617a6f6e6177732e636f6d2f6c61726176656c2d6261636b75702e6a70673f743d31)](https://spatie.be/github-ad-click/laravel-backup)

We invest a lot of resources into creating [best in class open source packages](https://spatie.be/open-source). You can support us by [buying one of our paid products](https://spatie.be/open-source/support-us).

We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on [our contact page](https://spatie.be/about-us). We publish all received postcards on [our virtual postcard wall](https://spatie.be/open-source/postcards).

Installation and usage
----------------------

[](#installation-and-usage)

This package requires PHP 7.3 and Laravel 6.0 or higher. You'll find installation instructions and full documentation on .

Using an older version of PHP / Laravel?
----------------------------------------

[](#using-an-older-version-of-php--laravel)

If you are on a PHP version below 7.3 or a Laravel version below 6.0 just use an older version of this package.

Read the extensive [documentation on version 3](https://spatie.be/docs/laravel-backup/v3), [on version 4](https://spatie.be/docs/laravel-backup/v4) and [on version 5](https://spatie.be/docs/laravel-backup/v5). We won't introduce new features to v5 and below anymore but we will still fix bugs.

Testing
-------

[](#testing)

Run the tests with:

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

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

[](#contributing)

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

Security
--------

[](#security)

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

Postcardware
------------

[](#postcardware)

You're free to use this package, but if it makes it to your production environment we highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using.

Our address is: Spatie, Kruikstraat 22, 2018 Antwerp, Belgium.

We publish all received postcards [on our company website](https://spatie.be/open-source/postcards).

Credits
-------

[](#credits)

- [Freek Van der Herten](https://github.com/freekmurze)
- [All Contributors](../../contributors)

And a special thanks to [Caneco](https://twitter.com/caneco) for the logo ✨

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity88

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 82.4% 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 ~9 days

Recently: every ~3 days

Total

228

Last Release

1883d ago

Major Versions

6.14.1 → 7.0.02020-12-16

6.14.2 → 7.1.02021-01-11

6.14.3 → 7.2.02021-01-25

6.15.0 → 7.3.02021-03-04

v6.x-dev → 7.3.12021-03-12

PHP version history (9 changes)0.0.1PHP &gt;=5.4.0

2.9.2PHP ^5.4.0|^7.0

3.0.0PHP ^5.5|^7.0

4.0.0PHP ^7.0

5.6.6PHP ^7.1

6.0.0PHP ^7.2

6.11.2PHP ^7.3

6.13.0PHP ^7.3|^8.0

7.0.0PHP ^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/77962260?v=4)[C.P.](/maintainers/cp-2012)[@cp-2012](https://github.com/cp-2012)

---

Top Contributors

[![freekmurze](https://avatars.githubusercontent.com/u/483853?v=4)](https://github.com/freekmurze "freekmurze (645 commits)")[![sebastiandedeyne](https://avatars.githubusercontent.com/u/1561079?v=4)](https://github.com/sebastiandedeyne "sebastiandedeyne (24 commits)")[![AlexVanderbist](https://avatars.githubusercontent.com/u/6287961?v=4)](https://github.com/AlexVanderbist "AlexVanderbist (16 commits)")[![yushkevichv](https://avatars.githubusercontent.com/u/2371017?v=4)](https://github.com/yushkevichv "yushkevichv (13 commits)")[![blueclock](https://avatars.githubusercontent.com/u/586174?v=4)](https://github.com/blueclock "blueclock (7 commits)")[![Nielsvanpach](https://avatars.githubusercontent.com/u/10651054?v=4)](https://github.com/Nielsvanpach "Nielsvanpach (7 commits)")[![juukie](https://avatars.githubusercontent.com/u/2678657?v=4)](https://github.com/juukie "juukie (6 commits)")[![carusogabriel](https://avatars.githubusercontent.com/u/16328050?v=4)](https://github.com/carusogabriel "carusogabriel (6 commits)")[![mvdnbrk](https://avatars.githubusercontent.com/u/802681?v=4)](https://github.com/mvdnbrk "mvdnbrk (5 commits)")[![AdrianMrn](https://avatars.githubusercontent.com/u/12762044?v=4)](https://github.com/AdrianMrn "AdrianMrn (4 commits)")[![ptondereau](https://avatars.githubusercontent.com/u/4287777?v=4)](https://github.com/ptondereau "ptondereau (4 commits)")[![glamorous](https://avatars.githubusercontent.com/u/62723?v=4)](https://github.com/glamorous "glamorous (3 commits)")[![drbyte](https://avatars.githubusercontent.com/u/404472?v=4)](https://github.com/drbyte "drbyte (3 commits)")[![cp-2012](https://avatars.githubusercontent.com/u/77962260?v=4)](https://github.com/cp-2012 "cp-2012 (3 commits)")[![arcanedev-maroc](https://avatars.githubusercontent.com/u/3282340?v=4)](https://github.com/arcanedev-maroc "arcanedev-maroc (3 commits)")[![RicardoRamirezR](https://avatars.githubusercontent.com/u/6526545?v=4)](https://github.com/RicardoRamirezR "RicardoRamirezR (3 commits)")[![barryvdh](https://avatars.githubusercontent.com/u/973269?v=4)](https://github.com/barryvdh "barryvdh (3 commits)")[![tylercd100](https://avatars.githubusercontent.com/u/4522226?v=4)](https://github.com/tylercd100 "tylercd100 (3 commits)")[![Gummibeer](https://avatars.githubusercontent.com/u/6187884?v=4)](https://github.com/Gummibeer "Gummibeer (3 commits)")[![richardkeep](https://avatars.githubusercontent.com/u/3874381?v=4)](https://github.com/richardkeep "richardkeep (2 commits)")

---

Tags

spatiedatabasebackuplaravel-backup

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/cp-2012-laravel-backup/health.svg)

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

###  Alternatives

[spatie/laravel-backup

A Laravel package to backup your application

6.0k21.8M189](/packages/spatie-laravel-backup)[spatie/laravel-db-snapshots

Quickly dump and load databases

1.2k2.8M20](/packages/spatie-laravel-db-snapshots)[spatie/laravel-health

Monitor the health of a Laravel application

85810.0M83](/packages/spatie-laravel-health)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)[laravel-zero/framework

The Laravel Zero Framework.

3371.4M369](/packages/laravel-zero-framework)[kreait/laravel-firebase

A Laravel package for the Firebase PHP Admin SDK

1.3k16.5M42](/packages/kreait-laravel-firebase)

PHPackages © 2026

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