Copying data from STDOUT to a remote machine using SFTP

Posted by freddie on Stack Overflow See other posts from Stack Overflow or by freddie
Published on 2010-05-05T10:43:10Z Indexed on 2010/05/05 10:48 UTC
Read the original article Hit count: 246

In order to backup large database partitions to a remote machine using SFTP, I'd like to use the databases dump command and send it directly over using SFTP to a remote location.

This is useful when needing to dump large data sets when you don't have enough local disk space to create the backup file, and then copy it to a remote location.

I've tried using python + paramiko which provides this functionality, but the performance much worse than using the native openssh/sftp binary to transfer files.

Does anyone have any idea on how to do this either with the native sftp client on linux, or some library like paramiko? (but one that performs close to the native sftp client)?

© Stack Overflow or respective owner

Related posts about sftp

Related posts about database-backups