https://github.com/danisec/backup-mysql-laragon
Backup Database MySQL Laragon for Windows Task Scheduler
https://github.com/danisec/backup-mysql-laragon
Last synced: about 1 year ago
JSON representation
Backup Database MySQL Laragon for Windows Task Scheduler
- Host: GitHub
- URL: https://github.com/danisec/backup-mysql-laragon
- Owner: danisec
- License: mit
- Created: 2024-08-28T02:05:05.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-28T02:24:45.000Z (almost 2 years ago)
- Last Synced: 2024-08-28T04:36:06.048Z (almost 2 years ago)
- Language: Batchfile
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Backup MySQL Database Laragon for Windows Task Scheduler
### Step By Step
1. Download file backup_database_mysql.bat
2. You can modify file backup_database_mysql.bat
If you have DB_USER and DB_PASS, you can use the command below:
```bash
%MYSQL_DIR%\mysqldump -u %DB_USER% -p%DB_PASS% %DB_NAME% > %BACKUP_DIR%\%DB_NAME%_%TIMESTAMP%.sql
```
If you only have DB_USER without DB_PASS or DB_PASS is empty, you can use the command below:
```bash
%MYSQL_DIR%\mysqldump -u %DB_USER% %DB_NAME% > %BACKUP_DIR%\%DB_NAME%_%TIMESTAMP%.sql
```
3. Create a new task in Task Scheduler.