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.
php-mysql/php-pgsql (or PDO equivalents) for database backups.league/flysystem-* for cloud storage (if not using local backups)..env and config file customization, reducing merge conflicts in team environments.beforeBackup) and post-backup validation (e.g., checksums). Users should test with production-like data volumes.pdo_mysql) change.mysql_* functions).AppServiceProvider.php artisan backup:run), fitting into existing Laravel workflows (e.g., php artisan migrate).BackupStarted, BackupCompleted, BackupFailed events, enabling integration with Laravel Notifications or third-party tools (e.g., Datadog).Illuminate\Queue).mysqldump/pg_dump under the hood (configurable via .env).storage/app/backups by default).league/flysystem-* packages.mysqldump, no retention, no alerts).composer require aaix/laravel-easy-backups
php artisan vendor:publish --provider="Aaix\EasyBackups\EasyBackupsServiceProvider"
config/easy-backups.php) and migrations (if using database-backed storage)..env with database credentials and storage settings.config/easy-backups.php for:
php artisan backup:run --dry-run).app/Console/Kernel.php for scheduled backups:
$schedule->command('backup:run')->dailyAt('2:00');
php artisan queue:work --sleep=3 --tries=3
composer.json).mysql, pgsql).league/flysystem-aws-s3-v3).mysqldump/pg_dump flags (e.g., --single-transaction for PostgreSQL).storage_path('app/backups'))..env and config files to avoid hardcoding.config:cache to manage runtime overrides.league/flysystem-* or Laravel core that may affect storage/queue behavior.storage/logs/laravel.log) and package logs (storage/logs/easy-backups.log).--single-transaction for PostgreSQL to avoid long locks.storage/app/backups) is writable.mysqldump optimizations (e.g., --quick, --compress).How can I help you explore Laravel packages today?