aaix/laravel-easy-backups

A developer-first, fluent and flexible package for creating database backups in Laravel.

Maintainers

👁 aaix

Package info

github.com/jonaaix/laravel-easy-backups

Type:laravel-package

pkg:composer/aaix/laravel-easy-backups

Statistics

Installs: 218

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 2

v1.2.1 2026-06-19 20:43 UTC

Requires

Suggests

  • fakerphp/faker: Required to generate anonymized data via the obfuscate() method (^1.0).

Provides

None

Conflicts

None

Replaces

None

MIT 2ce2ca179ce692303884fd437af90a121c996a4a

  • Jonas Gnioui <jonaaix.woop@icloud.com>

README

👁 Laravel Easy Backups Logo

Laravel Easy Backups

A developer-first, fluent and flexible package for creating backups in Laravel.

👁 Latest Version on Packagist
👁 Total Downloads
👁 GitHub Actions
👁 License

Installation

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"

A Quick Look

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();

Documentation

For the full documentation, including advanced features, common recipes, and detailed guides, please visit our full documentation website.