dansan / zrsync Goto Github PK
View Code? Open in Web Editor NEWContinuously synchronize directories from a client to a server.
License: GNU General Public License v3.0
Continuously synchronize directories from a client to a server.
License: GNU General Public License v3.0
Investigate if splitting big "full" (and "diff"?) transfers makes sense.
When zrsyncd is run as non-root user, and the UID of a source file/dir differs, it tries a chmod, fails, displays a traceback and quits:
2016-08-19 01:30:52 zrsyncd.cmp_node:504 DEBUG [24971] does not exist: u'/tmp/mytarget'
2016-08-19 01:30:52 zrsyncd.mkdir:627 DEBUG [24971] mkdir(u'/tmp/mytarget'); chown(); utime()
2016-08-19 01:30:52 zrsyncd.chown:623 DEBUG [24971] chown(u'/tmp/mytarget', 2311, 5001)
Process sync_server:
Traceback (most recent call last):
File "/usr/lib/python2.7/multiprocessing/process.py", line 258, in _bootstrap
self.run()
File "/usr/lib/python2.7/multiprocessing/process.py", line 114, in run
self._target(*self._args, **self._kwargs)
File "/home/daniel/.zrsync/zrsync/zrsync/zrsyncd.py", line 699, in run
reply["tree_diff"] = self.sync_tree(src_tree, request["no_delete"])
File "/home/daniel/.zrsync/zrsync/zrsync/zrsyncd.py", line 475, in sync_tree
res = self.cmp_node(node)
File "/home/daniel/.zrsync/zrsync/zrsync/zrsyncd.py", line 513, in cmp_node
node["st_atime"], node["st_mtime"])
File "/home/daniel/.zrsync/zrsync/zrsync/zrsyncd.py", line 629, in mkdir
self.chown(dirname, uid, gid)
File "/home/daniel/.zrsync/zrsync/zrsync/zrsyncd.py", line 624, in chown
os.lchown(name, uid, gid)
OSError: [Errno 1] Operation not permitted: '/tmp/mytarget'
zrsyncd should instead send a note back to the client, which should display a warning.
/
at the end matter?).~
and other relative forms.-s --ssh
tunnel connection through SSH. Assumes prior setup of password-less SSH login.
-l --install
try to install zrsync on target. Automatically enables --ssh.
zrsync should run on both Python 2 and Python 3
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.