Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- title dump
- REM ###################################################################
- set ctime=%TIME:~0,2%
- if "%ctime:~0,1%" == " " (set ctime=0%ctime:~1,1%)
- set ctime=%ctime%'%TIME:~3,2%'%TIME:~6,2%
- REM ###################################################################
- set HOST=localhost
- set PORT=3306
- set LOG=root
- set PASS=password
- set DB=l2jdb
- set tim=%DATE%_%ctime%
- cd D:
- cd D:\Backup
- mysqldump.exe --host=%HOST% --port=%PORT% --user=%LOG% --password=%PASS% %DB% > %DB%_%tim%.sql
- "C:\Program Files\WinRAR\rar.exe" a -m5 -df %DB%_%tim%.rar %DB%_%tim%.sql
Add Comment
Please, Sign In to add comment