Automate mysqldump to local Windows computer
I'm trying to use plink on Windows to create a tunnel to a Linux machine and have the dump file end up on the Windows machine. It would appear that this answer would work and is the basis of my question. But trying it out and looking at other answers I find that the dump file is still on the Linux machine. I'm trying this out in my local environment with Windows and Ubuntu 14.04 before moving to production. In Windows 8.1: plink sam@192.168.0.20 -L 3310:localhost:3306 mysqldump --port=3310 -h localhost -u sam -p --all-databases > outfile.sql I've tried swapping localhost in the second with 127