WI-damian-kaminski/projektpp/backup.bat
2021-10-23 09:55:31 +02:00

11 lines
368 B
Batchfile

@echo off
For /f "tokens=2-4 delims=/ " %%a in ('date /t') do (set mydate=%%c-%%a-%%b)
For /f "tokens=1-2 delims=/:" %%a in ("%TIME%") do (set mytime=%%a%%b)
SET backupdir=C:\xampp\htdocs\backup
SET mysqluername=root
SET mysqlpassword=
SET database=gymfit
C:\xampp\mysql\bin\mysqldump.exe -uroot %database% > %backupdir%\%database%_%mydate%_%mytime%_.sql