Looking for cross-platform rsync-like functionality in python, such as rsync.py

18,549

Solution 1

Alternative : pysync - implementation of the rsync and related algorithms in pure Python, and a high speed librsync Python extension

Another alternative: http://code.google.com/p/pyrsync/

Solution 2

Here is the algorythm (not sure if it helps you out):

http://code.activestate.com/recipes/577518-rsync-algorithm/

Solution 3

I know that rdiff-backup is written in python and use an rsync-like algorithm. It use librsync. Note that rdiff-backup is not a replacement for rsync, so it will not fill your needs. But you can take a look at librsync and see how rdiff-backup use it.

Share:
18,549
AndyL
Author by

AndyL

Neuroscience and Biophysics at Princeton, University. SOreadytohelp

Updated on June 06, 2022

Comments

  • AndyL
    AndyL almost 2 years

    I am implementing backup scripts in python. I'm trying to keep things cross platform. I hear there is a python based rsync implementation: http://pypi.python.org/pypi/rsync.py

    But I can't seem to find it anywhere. All of the download links I find are dead. Does anyone know where I could find the rsync.py program?

    At the moment I am using unison for Windows but I would like to try rsync.py

  • AndyL
    AndyL over 13 years
    The second link you posted is actually just a wrapper for rsync. The first one, however, looks promising.
  • pyfunc
    pyfunc over 13 years
    @AndyL: Thanks. I understand. I just thought it it is good to keep the various alternatives here as answer.
  • AndyL
    AndyL over 13 years
    Thanks. The pysync README mentions windows binaries but I can't find them anywhere online. So instead I am following its instructions to compile from source. I run python setup.py bdist_wininst' and I get an error halfway through: error: Unable to find: vcvarsall.bat' :o/
  • pyfunc
    pyfunc over 13 years
    @AndyL: If you have hit the biggest roadblock on compiling extension on windows. This file "vcvarsall.bat" is a batch file that sets up windows command line environment for compilers. Check out some SO discussion on this. You will have to determine your environment (Visual studio Version) and then check for the setup details.
  • gdw2
    gdw2 over 12 years
  • Mawg says reinstate Monica
    Mawg says reinstate Monica over 7 years
    This should have been posted as a comment, not an answer