revolution/sail-db-backup

Backup Sail's Database
67,787 7
Install
composer require revolution/sail-db-backup
Latest Version:3.2.0
PHP:^8.3
Laravel:12 · 13
Older releases:8 – 11
License:MIT
Last Updated:Oct 3, 2026
Links: GitHub  ·  Packagist
Maintainer: revolution

Backup Sail's Database

Requirements

  • PHP >= 8.3
  • Laravel >= 12.0

Installation

composer require revolution/sail-db-backup --dev

Uninstall

composer remove revolution/sail-db-backup --dev

No config file.

Usage

Be sure to run the command in Sail.

vendor/bin/sail art sail:backup:mysql

The SQL file will be saved in .backup/mysql_backup.(Same as Homestead)

If you want to change the mysql_backup

sail art sail:backup:mysql --path=database/backup

Select Database connection

sail art sail:backup:mysql --connection=mysql2

Global .gitignore

Recommend exclusion in global .gitignore

.backup

LICENSE

MIT

Related Packages

howtomakeaturn/csvdumper

Dump database into csv format.

72 8
spotonlive/sl-db-backup

Database backup for Laravel 5.1

1,309 0
spatie/laravel-backup

A Laravel package to backup your application

28,869,800 6,026
cornford/backup

An easy way backup and restore databases in Laravel.

25,738 40
h2akim/backupl41

An easy way backup and restore databases in Laravel.

17 1

Version History

Version Released PHP Laravel License
3.2.0 ^8.3 ^12.0||^13.0 MIT
3.1.0 ^8.2 ^11.0||^12.0 MIT
3.0.0 ^8.1 ^10.0||^11.0 MIT
2.1.0 ^8.1 ^10.0||^11.0 MIT
2.0.0 ^8.1 ^10.0 MIT