If you've ever had to restore a Laravel application from a backup, you know the pain. While tools like Spatie's Laravel Backup handle the creation of archives, the restoration of files (uploads, storage, assets) is often a manual, error-prone process.
I built Laravel Backup Complete Restore to bridge this gap.
The Missing Piece: Why I Built This
When disaster struck during the development of ShynDorca, I found myself manually extracting files, mapping container paths, and resetting permissions. It was slow and risky.
Info: The Solution: A single command that restores both your database AND your files, complete with path mapping and health checks.
Getting Started
Standardize your disaster recovery workflow with these simple steps:
1. Install the package
composer require klytron/laravel-backup-complete-restore
2. List your available backups
php artisan backup:restore-complete --list
3. Restore everything in one go
php artisan backup:restore-complete --disk=s3
Tip: Time Saver: What previously took 30+ minutes of manual file manipulation now takes under 2 minutes with automated validation.
Technical Features & Resilience
The core of this package is its intelligent path mapping and safety measures:
- Automatic Path Mapping: Handles the translation of container-stored paths to your current environment's local directories.
- Safety Backups: Automatically backs up existing local files before overwriting them during restoration.
- Health Checks: An extensible system that validates the integrity of the restored database and file structure.
- Multi-Storage Support: Works out of the box with S3, Google Drive, and any Laravel-supported filesystem.
Open source and ready for production
Backup restoration should be boring. It should work reliably, safely, and completely every single time.
Check out the package on GitHub and start automating your resilience today.