axkibe/lsyncd — Issue #45: lsyncd is not compatible with use of rsync option --relative
Author: axkibe
Created: 2011-11-16 15:03:10+00:00
State: open
Labels: Type-Defect

Originally filed by robert.e...@gmail.com on 2011-02-01T15:50:40

What steps will reproduce the problem?
1. Add '--relative' option to rsyncOps
2. Run lsyncd command as usual

What is the expected output? What do you see instead?
With a source of /home/me/tmp and destination of /backup/me, lsyncd should create and sync with /backup/me/home/me/tmp. It does the initial rsync to this directory, but it syncs /home/me/tmp with /backup/me. For example, creating 'test' in /home/me/tmp should create /backup/me/home/me/tmp/test but instead it creates /backup/me/test.

What version of the product are you using? On what operating system?
2.0.2 on Ubuntu 10.10

Please provide any additional information below.
The issue appears to be with how the paths are tracked by lsyncd because the rsyncOps are definitely still used for the incremental updates.