aaix/laravel-easy-backups
Developer-first Laravel backup package with an interactive CLI wizard, direct Artisan commands for automation, and a fluent API to build custom workflows. Create/restore DB backups, choose destinations, enable compression, and control retention.
Install the package via Composer:
composer require aaix/laravel-easy-backups
Next, publish the configuration file. This is optional but recommended.
php artisan vendor:publish --provider="Aaix\LaravelEasyBackups\EasyBackupsServiceProvider" --tag="config"
The Easy Way (CLI)
Use the interactive wizard to create or restore backups without remembering flags:
php artisan easy-backups
Or use the robust direct commands for cronjobs, scripts, and CI/CD:
php artisan easy-backups:db:create --compress
php artisan easy-backups:db:restore
The Flexible Way (Fluent API)
Define custom backup workflows directly in your code using the chainable API:
use Aaix\LaravelEasyBackups\Facades\Backup;
Backup::database(config('database.default'))
->saveTo('backup')
->compress()
->maxRemoteBackups(10)
->run();
For the full documentation, including advanced features, common recipes, and detailed guides, please visit our full documentation website.
How can I help you explore Laravel packages today?