revolution/sail-db-backup

Backup Sail's Database

Fund package maintenance!
invokable

Installs: 50 746

Dependents: 0

Suggesters: 0

Security: 0

Stars: 7

Watchers: 2

Forks: 1

pkg:composer/revolution/sail-db-backup

3.2.0 2026-02-22 02:16 UTC

This package is auto-updated.

Last update: 2026-02-22 02:17:03 UTC


README

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