mysqldump to remote server

Posted on 2006-06-02
Last Modified: 2008-03-04
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,
Question by:m0nk3yza
    1 Comment
    LVL 142

    Accepted Solution

    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)

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
    I annotated my article on ransomware somewhat extensively, but I keep adding new references and wanted to put a link to the reference library.  Despite all the reference tools I have on hand, it was not easy to find a way to do this easily. I finall…
    Video by: Steve
    Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now