Download the PHP package bhavgoyal99/laravel-smart-backup without Composer
On this page you can find all versions of the php package bhavgoyal99/laravel-smart-backup. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download bhavgoyal99/laravel-smart-backup
More information about bhavgoyal99/laravel-smart-backup
Files in bhavgoyal99/laravel-smart-backup
Package laravel-smart-backup
Short Description A Laravel package for full and incremental database backups.
License MIT
Informations about the package laravel-smart-backup
Laravel Smart Backup
Lightweight Laravel package for full and incremental database backups with chunked processing, restore commands, scheduling support, and an optional Blade dashboard.
Features
- Full table backups
- Incremental backups using
created_at,updated_at, anddeleted_at - Chunked processing for large tables
- Laravel filesystem storage
- SQL and JSON export
- Restore from SQL, JSON, and JSONL backup files
- Scheduled backups with frequency, time, and timezone support
- Optional maintenance mode during backup and restore runs
- Optional Blade dashboard with backup list, run, restore, and settings screens
- Package migrations and config publishing
Requirements
- PHP 8.1+
- Laravel 10, 11, or 12
Installation
Publish config and package assets if needed:
Run migrations:
Configuration
The package config lives at config/backup.php.
Main options:
mode:fullorincrementalformat:sql,json,csvchunk_sizetables.includetables.excludestorage.diskstorage.pathschedule.*maintenance.*restore.*ui.*
Example:
Running Backups
Run a backup manually:
With runtime options:
Restoring Backups
Restore a backup file:
Restore a specific table:
With restore password:
Scheduling
Enable scheduled backups in config/backup.php:
Supported frequencies:
hourlydailyweeklymonthly
The package registers itself with Laravel's scheduler when scheduling is enabled.
Maintenance Mode
When enabled, the package will automatically run Laravel maintenance mode before backup and restore operations, then bring the application back up after the operation completes.
Dashboard
Enable the Blade dashboard:
Dashboard includes:
- Backup list
- Run backup form
- Restore backup form
- Settings page
When the dashboard triggers a backup, the package starts
php artisan backup:run in a detached background process by default.
This avoids reverse-proxy timeouts for large production backups while
keeping php artisan backup:run synchronous for CLI and scheduler usage.
Disable that behavior only if you explicitly want the web request to wait:
Storage Structure
Backups are stored in structured folders by mode and date.
Examples:
Package Migrations
The package ships with migrations for backup metadata tables:
smart_backup_runssmart_backup_tables
They are loaded automatically by the package and can also be published.
Testing
The package includes a basic Orchestra Testbench setup with feature coverage for:
- provider bootstrapping
- core backup execution
- metadata persistence
Run tests with:
Current Status
This package is now in much better shape for a first stable release.
Before tagging v1.0.0, I still recommend one final verification pass:
- Run the Testbench suite in a clean environment with dependencies installed
- Verify install and publish flow in a fresh Laravel app
- Decide whether CSV should be fully implemented or removed from the public surface for
v1
Release Recommendation
Recommended release path:
- Run
composer install - Run
vendor/bin/phpunit - Smoke-test the package in a fresh Laravel app
- If that passes, tag
v1.0.0
If you want, the next step can be a final release-prep pass where I:
- trim compatibility files
- reduce the public surface to only supported formats
- prepare a release checklist or changelog
All versions of laravel-smart-backup with dependencies
illuminate/console Version ^10.0|^11.0|^12.0
illuminate/contracts Version ^10.0|^11.0|^12.0
illuminate/database Version ^10.0|^11.0|^12.0
illuminate/filesystem Version ^10.0|^11.0|^12.0
illuminate/mail Version ^10.0|^11.0|^12.0
illuminate/routing Version ^10.0|^11.0|^12.0
illuminate/support Version ^10.0|^11.0|^12.0