Notifications
Clear all
BugOverflow
1
Posty
1
Users
0
Reactions
2,040
Widok
0
14/08/2015 2:41 pm
Topic starter
xampp/mysql - create full database backup from batch file
1 Answer
0
14/08/2015 2:42 pm
Topic starter
Full mysql database backup with date folder code
@echo off &setlocal for /f "tokens=1-3 delims=/" %%a in ("%date%") do md "..%%a" for /f "tokens=1-3 delims=/" %%a in ("%date%") do set "data_folder=%%a" C:xamppmysqlbinmysqldump --all-databases --complete-insert --add-drop-table --add-locks --allow-keywords --lock-tables --quote-names --user=root > ..%data_folder%mysql_dump.sql