Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel Backup Restore Laravel Package

wnx/laravel-backup-restore

Restore database backups created by spatie/laravel-backup. Adds an interactive php artisan backup:restore command to pick a backup and optionally decrypt it, then run configurable post-restore health checks to validate the restored DB.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Disaster Recovery & Data Resilience: Enables automated, validated database restores from spatie/laravel-backup, reducing downtime and manual intervention during failures (e.g., corrupted data, accidental deletions, or infrastructure outages).
  • CI/CD & Backup Validation: Integrates with GitHub Actions to automate backup integrity testing (e.g., monthly scheduled restores to a sandbox DB), ensuring backups are restorable before they’re needed. Critical for compliance-heavy industries (finance, healthcare).
  • Multi-Environment Sync: Supports targeted restores (e.g., staging → production) via --connection flags, enabling controlled data migrations or rollbacks.
  • Custom Validation Logic: Extensible health checks (e.g., verify critical tables, recent transactions) to fail fast if restores corrupt data, reducing false positives in monitoring.
  • Cost Optimization: --keep flag allows debugging backups without deleting temporary files, useful for post-mortems.
  • Build vs. Buy: Avoids reinventing wheel for backup restoration (vs. custom scripts) while adding Laravel-native features (e.g., Artisan integration, health checks).

When to Consider This Package

Adopt if:

  • Your team uses spatie/laravel-backup for database backups (this package is dependent on it).
  • You need automated, validated restores (e.g., for DR, CI/CD, or compliance).
  • Your backups are encrypted (supports decryption via config/password flags).
  • You require custom validation (e.g., check for specific data post-restore).
  • Your stack is Laravel 12+ / PHP 8.4+ (compatibility is strict).

Look elsewhere if:

  • You use non-Spatie backups (e.g., native mysqldump, RDS snapshots, or third-party tools like AWS Backup).
  • You need file restoration (this package is database-only).
  • Your environment is multi-tenant (unsupported; requires customization).
  • You’re on older Laravel/PHP versions (no support for <12/<8.4).
  • You need GTID-compatible MySQL restores (workaround required for DigitalOcean-managed DBs).

How to Pitch It (Stakeholders)

For Executives (Business Impact)

*"This package automates database disaster recovery and backup validation, reducing risk of data loss and downtime. By integrating with our existing spatie/laravel-backup setup, we can:

  • Restore databases in minutes (vs. hours of manual work) during failures.
  • Validate backups monthly via CI/CD (GitHub Actions), ensuring we’ll recover when it matters.
  • Add custom checks (e.g., verify critical transactions) to catch corrupt restores early. Cost: Free (MIT license). ROI: Minimizes revenue loss from outages and compliance violations."*

For Engineering (Technical Value)

*"This fills a gap in our backup workflow by enabling programmatic, validated restores of Spatie backups. Key benefits:

  • Artisan Command: php artisan backup:restore with flags for disk, backup, connection, and decryption (supports S3, encrypted backups).
  • Health Checks: Extendable validation (e.g., check for tables, recent sales) to fail fast on bad restores.
  • CI/CD Ready: Pre-built GitHub Action to test backups monthly in a sandbox DB.
  • Debugging: --keep flag preserves temp files for post-mortems. Tradeoffs: Only works with Spatie backups; no file restoration or multi-tenancy support. Next Steps: Pair with spatie/laravel-backup and test in staging."*
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
codraw/framework-extra-bundle
codraw/messenger
codraw/security
codraw/mailer
codraw/contracts
codraw/profiling
codraw/dependency-injection
codraw/tester
codraw/core
nexmo/api-specification
capell-app/block-library
axium/identity
cetria/laravel-dummy-models
cetria/reflection-helper
agropredict/sso-auth-bundle
evolvestudio/spam-protection
datacore/hub-sdk
develia/commons
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony