Arma3_Exile_Mission/backupDB.bat

6 lines
463 B
Batchfile

@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%
rem "F:\MariaDB\bin\mysqldump.exe" -h10.10.10.8 -uexile -pIlovegina exile64 > "F:\Arma3\DBBackups\Exile64_%datetime%.sql"
"f:\MariaDB\bin\mysqldump.exe" -h10.10.10.8 -uexile -pIlovegina exile > "F:\Arma3\DBBackups\Exile_%datetime%.sql"
exit