-
-
Notifications
You must be signed in to change notification settings - Fork 290
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Relative symlinks messed up after being rsynced #85
Relative symlinks messed up after being rsynced #85
Comments
@kylehendricks am i right, that --munge-links can by used as a rsync parameter, not only as a server parameter? Beside we have to thing about the issues (probably) with --munge-links , you could add this for you using the sync_args https://github.com/EugenMayer/docker-sync/blob/master/example/docker-sync.yml#L36 for now Does this help you for now? |
It looks like the version of rsync on my mac is 2.6.9 which doesn't support the I also saw there is an rsync argument |
@kylehendricks install a better rsync version using brew those are the options there
|
Updated rsync to 3.1.2 and tried passing |
I ended up working around this by doing |
-L resolves the symlinks to files, not keeping them as symlinks. Thats not what you want most probably. Do your symlink point at a point the the synced data or on the outer dest-container filesystem? Nevertheless, we neither use chroot, or anything else. I am not able to see how we can fix this server side for now, feel free to enlighten me :) |
The symlinks are pointed at data within the volume itself. Supposedly you can add On Tue, Aug 2, 2016, 18:26 Eugen Mayer [email protected] wrote:
|
ah, is it enabled by default? If yes, this makes a lot of sense |
Here's what the doc says. "The default is disabled when "use chroot" is on and the inside-chroot path On Thu, Aug 4, 2016, 03:42 Eugen Mayer [email protected] wrote:
|
https://github.com/EugenMayer/docker-image-rsyncd/blob/master/run#L36 well we have |
implemented and fixed with the new rsync image |
I'm still seeing munged symlinks. Has this new rsync image been released? Just loaded today, I have an image apparently created 3 weeks ago, while this fix was in just 2 weeks ago:
Is there a different image available including this fix, or otherwise, when do you expect this to be released? Thanks! |
Hi, if it happened, not by intention. At least looking on the docker-file https://github.com/EugenMayer/docker-image-rsyncd/blob/master/run#L39 the setting should be there. Not sure what potentially could be wrong. If you like, bull that repo and build the image locally - does it work for you then? |
Yes, building it locally fixes it. It looks like the Docker Hub image just hasn't been updated with the latest. |
Very odd, i ll try to repush it ASAP, thank you! |
@thinkspill just pushed a new image - please delete your local image using |
as far as i tested it, it works know |
I have a relative symlink in my source directory at
abc/symlink1
and it points to../def/symlink1
. After I start docker-sync and inspect the rsync container (and my container) my symlink now points to/rsynd-munged/../def/symlink1
Does
munge symlinks
need to be turned off?The text was updated successfully, but these errors were encountered: