mysqldump to remote server

Hi All,

We have a Linux server with MySQL.

I need to do a mysqldump from the Linux server to a Sun server

For a local dump, I would do mysqldump mydb > /tmp/mydb.sql
Then ftp it to the Sun server.

But this dump is rather large and there's not enough free diskspace on the Linux server.

What is the command to do a remote mysqldump (from Linux to Solaris)?

There is no mysql on Sun server, it's just used to store backups.

Please advise.

Thank you,
Who is Participating?
Guy Hengel [angelIII / a3]Connect With a Mentor Billing EngineerCommented:
2 methods:

 mount a folder from the remote server locally, and dump to that folder
 create a system of 2 pipes, one locally which feeds the pipe on the remote server, on the remote server cat from that pipefile to a read file, and start the dump to the local pipe (sounds complex, but is only difficult to set in place if you have a high security environment)
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.