Arma3_Exile_Mission/backupDB.bat

6 lines
482 B
Batchfile
Raw Normal View History

@echo off
for /f "tokens=2 delims==" %%I in ('wmic os get localdatetime /format:list') do set datetime=%%I
set datetime=%datetime:~0,4%-%datetime:~4,2%-%datetime:~6,2%_%datetime:~8,2%-%datetime:~10,2%-%datetime:~12,2%
"F:\MariaDB\bin\mysqldump.exe" -h10.10.10.8 -uexile -pIlovegina exile64 > "F:\Arma3\DBBackups\Exile64_%datetime%.sql"
REM "C:\Program Files\MariaDB 10.2\bin\mysqldump.exe" -h10.10.10.8 -uexile -pIlovegina exile > "F:\Arma3\DBBackups\Exile_%datetime%.sql"
exit