from d:/backup/mysql_backup.bat
set bin_path="C:/Program Files/MySQL/MySQL Server 5.1/bin"
set dest_file=%date:~0,4%%date:~5,2%%date:~8,2%
set dest_dir=mysql/%dest_file%
set uid=root
set pwd=sql
;==========================
if exist %dest_dir% goto do_it
md %dest_dir%
;==========================
:do_it
;
set db=bugs
set prefix=bugzilla
set output=%prefix%_%dest_file%
%bin_path%/mysqldump -u%uid% -p%pwd% -B %db% > %dest_dir%/%output%.sql
zip -r %dest_dir%/%output%.zip %dest_dir%/%output%.sql
;
set db=streber
set prefix=streber
set output=%prefix%_%dest_file%
%bin_path%/mysqldump -u%uid% -p%pwd% -B %db% > %dest_dir%/%output%.sql
zip -r %dest_dir%/%output%.zip %dest_dir%/%output%.sql
;==============
exit