473,396 Members | 2,036 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,396 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 4712
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,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.