rsync module?

E

Evan Klitzke

Are there any python modules for accessing rsync from python? I would
like to be able to rsync files from a python script to a remote server
running an rsync daemon. I'm well aware that I can invoke rsync using
subprocess, os.system, etc., but I am curious if there is a way to do
it directly.
 
K

kyosohma

J

Jason F. McBrayer

Evan Klitzke said:
Are there any python modules for accessing rsync from python? I would
like to be able to rsync files from a python script to a remote server
running an rsync daemon. I'm well aware that I can invoke rsync using
subprocess, os.system, etc., but I am curious if there is a way to do
it directly.

I'm not aware of a standalone rsync module for Python, but duplicity
(http://www.nongnu.org/duplicity/) provides python bindings for
librsync for its own use. You could pull those in to your project.

--
+-----------------------------------------------------------+
| Jason F. McBrayer (e-mail address removed) |
| If someone conquers a thousand times a thousand others in |
| battle, and someone else conquers himself, the latter one |
| is the greatest of all conquerors. --- The Dhammapada |
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top