You can use the WinSCP command call
to run the mysqldump
, before you start the download (i.e. before the get
or synchronize
command).
For examples see:
https://winscp.net/eng/docs/scriptcommand_call
You may need to increase a session timeout (15s default) to allow the call
to finish in time.
Alternatively you can run the mysqldump
using a more appropriate tool, like plink
(from PuTTY suite), before you start WinSCP script:
https://the.earth.li/~sgtatham/putty/latest/htmldoc/Chapter7.html