# spatie/laravel-db-snapshots

Quickly dump and load databases

Repository: https://github.com/spatie/laravel-db-snapshots
Canonical: https://ross.abutalabs.com/products/laravel-db-snapshots
Homepage: https://freek.dev/716-a-laravel-package-to-quickly-dump-and-load-the-database
Language: PHP
License: MIT
License Family: permissive
Topics: database, dump, restore, mysql, postgresql, artisan
Last push: 2026-04-01T15:25:15+00:00

## Health v2 (maintenance only)
Score: 81/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 75, release rhythm 77, longevity 100
- inputs: {"age_days": 3456, "days_push": 154, "days_rel": 154, "gap_med": 22.5, "n_releases_24m": 7}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1217, forks 100 (observed 2026-08-28T04:04:01.497472+00:00)

## What it is
A Laravel package providing Artisan commands to quickly dump and load database snapshots. It supports MySQL, PostgreSQL, and SQLite and stores snapshots on a configurable filesystem disk.

## Use cases
- dump and restore a laravel database from the command line
- save database state before testing a feature and reload it after
- create named database snapshots in a laravel app
- restore the latest database snapshot with one artisan command
- clean up old database dumps keeping only recent ones
- quickly reset a development database to a known state

## When to choose
- you use Laravel and want simple artisan-driven database dump/restore
- you develop against MySQL, PostgreSQL, or SQLite and need to snapshot and reload database state
- you want snapshot storage integrated with Laravel's filesystem disks

## When to avoid
- you need full database backup tooling with scheduling, encryption, or cloud-native features
- you are not using Laravel, since the package depends on Artisan and Laravel filesystems
- you need continuous replication or point-in-time recovery rather than manual snapshots

## Facets
- artifact type: library
- maturity: active
- function: database, backup, cli, developer-tools
- domain: databases, developer-tools, backend, web-development
- platform: php, cli, self-hosted
- tags: laravel, artisan-commands, database-snapshots, mysql, postgresql, sqlite, dump-and-restore, spatie

## Member repositories
- spatie/laravel-db-snapshots (main) score 81

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:01.497472+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:17:09.522489+00:00, confidence not recorded.
  - readme: https://github.com/spatie/laravel-db-snapshots (fetched 2026-08-28T04:04:01.497472+00:00, sha 57a82b9b570d)
  - homepage: https://freek.dev/716-a-laravel-package-to-quickly-dump-and-load-the-database (fetched 2026-08-29T12:24:53.002746+00:00, sha 35ad797163ff)
  - site_page: https://freek.dev/about (fetched 2026-08-29T12:24:53.012534+00:00, sha e0ef9dccbb05)
- Data as of 2026-08-30T08:39:29.467469+00:00.
