我创建了一个批处理文件
@echo off
echo Running dump...
CD c:\Program Files\MySQL\MySQL Server 5.5\bin
CALL mysqldump --user=1234 --password=aaaa dba1 --result-file="c:\Users_%DATE%.sql"
echo Done!
而且我不知道如何将其传输到 ftp;
How about using ftp
command line utility?
It is capable of using scripts (lists of commands from external files)
ftp -s:ftpcmd.dat your.ftp.server.com
Now you can either create this script file beforehand or make it on the fly from your batch file using echo
.