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

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

spatie/laravel-backup
=====================

A Laravel package to backup your application

10.2.1(1mo ago)6.0k21.8M—4.5%79720MITPHPPHP ^8.3CI passing

Since Feb 18Pushed 1w ago86 watchersCompare

[ Source](https://github.com/spatie/laravel-backup)[ Packagist](https://packagist.org/packages/spatie/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/spatie-laravel-backup/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (48)Versions (340)Used By (20)

 [   ![Logo for Laravel Backup](https://camo.githubusercontent.com/400a276f94dc818ab3f425768ff775572029f93ca28155a73ddbfad8e0516672/68747470733a2f2f7370617469652e62652f7061636b616765732f6865616465722f6c61726176656c2d6261636b75702f68746d6c2f6c696768742e77656270)  ](https://spatie.be/open-source?utm_source=github&utm_medium=banner&utm_campaign=laravel-backup)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/fb81a24031991327c3e30fa01e99266881d92b2d9c5ad0b14606987471132988/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f7370617469652f6c61726176656c2d6261636b75702f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d5465737473)](https://github.com/spatie/laravel-backup/actions)[![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/v8/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/v8/monitoring-the-health-of-all-backups/overview). You can be [notified via several channels](https://spatie.be/docs/laravel-backup/v8/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/v8/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 8.4 and Laravel 12.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 8.4 or a Laravel version below 12.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), [on version 5](https://spatie.be/docs/laravel-backup/v5) and [on version 6](https://spatie.be/docs/laravel-backup/v6). We will not be introducing any new features to v6 and below. We will however continue to update for bugs as neccesary.

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](https://github.com/spatie/.github/blob/main/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)

Special thanks to [Caneco](https://twitter.com/caneco) for the original logo.

License
-------

[](#license)

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

###  Health Score

85

—

ExcellentBetter than 100% of packages

Maintenance94

Actively maintained with recent releases

Popularity80

Widely adopted with strong download metrics

Community56

Growing community involvement

Maturity98

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 71.7% 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 ~12 days

Recently: every ~4 days

Total

334

Last Release

55d ago

Major Versions

7.7.3 → 8.0.02022-01-12

7.8.0 → 8.1.22022-04-08

8.8.1 → 9.0.02024-07-02

v4.x-dev → 9.1.02024-09-23

v9.x-dev → 10.0.02026-02-17

PHP version history (13 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

8.3.0PHP ^8.1

9.0.0PHP ^8.2

9.3.7PHP ^8.3

10.0.0PHP ^8.4

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7535935?v=4)[Spatie](/maintainers/spatie)[@spatie](https://github.com/spatie)

---

Top Contributors

[![freekmurze](https://avatars.githubusercontent.com/u/483853?v=4)](https://github.com/freekmurze "freekmurze (830 commits)")[![Nielsvanpach](https://avatars.githubusercontent.com/u/10651054?v=4)](https://github.com/Nielsvanpach "Nielsvanpach (90 commits)")[![AlexVanderbist](https://avatars.githubusercontent.com/u/6287961?v=4)](https://github.com/AlexVanderbist "AlexVanderbist (28 commits)")[![sebastiandedeyne](https://avatars.githubusercontent.com/u/1561079?v=4)](https://github.com/sebastiandedeyne "sebastiandedeyne (24 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (23 commits)")[![erikn69](https://avatars.githubusercontent.com/u/4933954?v=4)](https://github.com/erikn69 "erikn69 (20 commits)")[![joshbonnick](https://avatars.githubusercontent.com/u/69632116?v=4)](https://github.com/joshbonnick "joshbonnick (15 commits)")[![yushkevichv](https://avatars.githubusercontent.com/u/2371017?v=4)](https://github.com/yushkevichv "yushkevichv (13 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (11 commits)")[![laravel-shift](https://avatars.githubusercontent.com/u/15991828?v=4)](https://github.com/laravel-shift "laravel-shift (10 commits)")[![AdrianMrn](https://avatars.githubusercontent.com/u/12762044?v=4)](https://github.com/AdrianMrn "AdrianMrn (9 commits)")[![stefanzweifel](https://avatars.githubusercontent.com/u/1080923?v=4)](https://github.com/stefanzweifel "stefanzweifel (8 commits)")[![blueclock](https://avatars.githubusercontent.com/u/586174?v=4)](https://github.com/blueclock "blueclock (7 commits)")[![boryn](https://avatars.githubusercontent.com/u/807297?v=4)](https://github.com/boryn "boryn (7 commits)")[![carusogabriel](https://avatars.githubusercontent.com/u/16328050?v=4)](https://github.com/carusogabriel "carusogabriel (6 commits)")[![juukie](https://avatars.githubusercontent.com/u/2678657?v=4)](https://github.com/juukie "juukie (6 commits)")[![jonerickson](https://avatars.githubusercontent.com/u/3356740?v=4)](https://github.com/jonerickson "jonerickson (5 commits)")[![mvdnbrk](https://avatars.githubusercontent.com/u/802681?v=4)](https://github.com/mvdnbrk "mvdnbrk (5 commits)")[![patinthehat](https://avatars.githubusercontent.com/u/5508707?v=4)](https://github.com/patinthehat "patinthehat (5 commits)")[![rcerljenko](https://avatars.githubusercontent.com/u/16762056?v=4)](https://github.com/rcerljenko "rcerljenko (4 commits)")

---

Tags

backupdatabasedevopslaravelphpzipspatiedatabasebackuplaravel-backup

###  Code Quality

TestsPest

Static AnalysisPHPStan, Rector

### Embed Badge

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

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

###  Alternatives

[aedart/athenaeum

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

245.2k](/packages/aedart-athenaeum)[spatie/laravel-db-snapshots

Quickly dump and load databases

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

The Laravel Zero Framework.

3371.4M369](/packages/laravel-zero-framework)[spatie/laravel-health

Monitor the health of a Laravel application

86910.0M83](/packages/spatie-laravel-health)[kreait/laravel-firebase

A Laravel package for the Firebase PHP Admin SDK

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

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)

PHPackages © 2026

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