Git Product home page Git Product logo

zrsync's People

Contributors

dansan avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

zrsync's Issues

server terminates if user cannot chown

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.

path mangling

  • Create clear definition of what paths on source and target match (does / at the end matter?).
  • Resolve consistently ~ and other relative forms.

support SSH tunneling

-s --ssh tunnel connection through SSH. Assumes prior setup of password-less SSH login.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.