Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kawax/sail-db-backup
https://github.com/kawax/sail-db-backup
Last synced: 21 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/kawax/sail-db-backup
- Owner: kawax
- License: mit
- Created: 2021-07-01T02:20:44.000Z (over 3 years ago)
- Default Branch: develop
- Last Pushed: 2024-05-29T04:16:00.000Z (7 months ago)
- Last Synced: 2024-05-29T17:22:19.417Z (7 months ago)
- Language: PHP
- Size: 15.6 KB
- Stars: 6
- Watchers: 4
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Backup Sail's Database
## Requirements
- PHP >= 8.1
- Laravel >= 10.0## Installation
```shell
composer require revolution/sail-db-backup --dev
```### Uninstall
```shell
composer remove revolution/sail-db-backup --dev
```
No config file.## Usage
Be sure to run the command in Sail.
```shell
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`
```shell
sail art sail:backup:mysql --path=database/backup
```### Select Database connection
```shell
sail art sail:backup:mysql --connection=mysql2
```## Global .gitignore
Recommend exclusion in global .gitignore```
.backup
```## LICENSE
MIT