revolution / sail-db-backup
Backup Sail's Database
3.0.0
2024-03-29 06:24 UTC
Requires
- php: ^8.1
- illuminate/support: ^10.0||^11.0
Requires (Dev)
- orchestra/testbench: ^8.0||^9.0
README
Requirements
- PHP >= 8.1
- Laravel >= 10.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