473,372 Members | 1,437 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,372 software developers and data experts.

rsync module?

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.

--
Evan Klitzke <ev**@yelp.com>
Jun 22 '07 #1
2 4710
On Jun 21, 7:40 pm, "Evan Klitzke" <e...@yelp.comwrote:
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.

--
Evan Klitzke <e...@yelp.com>
I found the following doing a quick Google search:

http://www.vdesmedt.com/~vds2212/rsync.html
http://freshmeat.net/projects/pysync/
http://www.nongnu.org/rdiff-backup/

Mike

Jun 22 '07 #2
"Evan Klitzke" <ev**@yelp.comwrites:
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 jm*****@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 |
Jun 23 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Rasmusson, Lars | last post by:
Hi, I have a problem doing I/O in a python thread. I want a thread to execute a command using os.popen, read its input until the end, and then print 'DONE' and terminate. However, the...
1
by: David Bear | last post by:
I was wondering if anyone has implemented the rsync protocol in python. -- David Bear -- let me buy your intellectual property, I want to own your thoughts --
0
by: Kurt Tragant | last post by:
Hi List, wouldn't it be possible to do a fast backup of the MySQL data in this way: 1.) rsync the MySQL data (with running mysqld) 2.) Stop mysqld 3.) rsync the MySQL data again Please...
1
by: elia Mazzawi | last post by:
Hi, i'm replacing a perl script with a C program, so the perl script used to rsync very many files to some 60 servers, and rsync was excellent for this. however the script did do a lot of...
1
by: M_at | last post by:
I'm trying to automate file copying of websites between servers with a web front end to allow our non-technical staff to make changes to sites live in a safe and ordered manner. I'm having...
0
by: William Dode | last post by:
Hi, I try to call rsync (with ssh) with subprocess but _some times_ it freeze without traceback, without any reason. My code look like that : def sh(self,cmd): log.debug("S cmd: " + "...
2
by: nienfeng | last post by:
Hi, everyone I want to build rsync server that can run in linux and windows, and configure by python. So I'm looking for something like rsync for python. I find rsync.py and pysync. But rsync.py...
0
by: lala4life | last post by:
Currently i have cygwin installed on windows, with two executables installed SSH and rsync, this let me keep synchronized with a Linux Server. My question is: It is possible to do that without...
7
by: timw.google | last post by:
Hi I want to write a python script that runs rsync on a given directory and host. I build the command line string, but when I try to run subprocess.call(cmd), or p=subprocess.Popen(cmd,...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.