@echo off
if not exist %~dp0BACKUP md %~dp0BACKUP
mysqldump -hlocalhost -uroot tronflux to_info "-winfo_time>=unix_timestamp(curdate())-86400 and info_time<unix_timestamp(curdate())" --skip-lock-tables --no-create-info --extended-insert=false > %~dp0BACKUP\%date:~0,4%%date:~5,2%%date:~8,2%.sql
