1

I tried to run remote command to back up my server db, after dumbing it I can't figure out how to remotely get the datas.

https://docs.python.org/2/library/subprocess.html

Found some documentation, but that didn't really helped me.

2

2 Answers 2

1

Most databases have some remote-backup service available, so I'd look into that first.

That said, you could use a library that simplifies secure-shell operations. One of those is Fabric which was based on paramiko.

Fabric was designed for things like remote backups (or deployments). You want to look specifically at it's get operation capabilities.

Sign up to request clarification or add additional context in comments.

Comments

0

I advice you to read this documentation.

=> https://docs.python.org/2/library/ssl.html#socket-creation

Best regards,

Greg

1 Comment

please include necessary snippets of this documentation in your answer

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.