rsync module?

Jason F. McBrayer jmcbray at carcosa.net
Fri Jun 22 16:53:07 EDT 2007


"Evan Klitzke" <evan at yelp.com> writes:

> 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                    jmcbray at carcosa.net  |
| 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    |



More information about the Python-list mailing list