I'm trying to implement a database backup cron (other solutions welcome) in my job but I have a small problem:
I have a large database that is over 10GB in space and the current vm doesn't have space to store it in the temporary file that mysql creates.
I know I can use mysqldump with a host parameter, but my question is, when doing that does the temporary file generated by mysqldump stay at the machine that is running it or does it stay on the database server?
UPDATE: I forgot to mention that I'm trying to backup a network of websites and that some of them are behind a firewall (needing VPN access), some need server hopping to get to the database server.
mysqldumpprocess is running on, not the server that the MySQL server is on. This is exactly the process I use to dump large databases when the server in question doesn't have enough disk space.mysqldumpon the archive machine?mysqldump -h livedb.example.com -u user -p password > dump.sql