-
-
Notifications
You must be signed in to change notification settings - Fork 289
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
Discuss weather to add --delete to rsync by default #37
Comments
I didn't give a try to the rsync version of docker_sync, but could you confirm that it has the same issues of
Or do you use some additionnals |
this can be fixed
is in fact the reason i do not use it ---delete In drupal, you create a new site in the container by creating a folder in /app/code/sites/ One of the reason of one way rsyncing |
How do you intend to resolve the first issue ? I got the same issue while playing with |
it wont, since -o aggregates the events, but does not tell you which happened anymore (AFAICS) So i am yet not sure, how you would implement this efficiently without having much higher drawbacks ( about 80% CPU load on a i7 4990k Desktop CPU with about 6k files ). So if you wil try this under your mbp, you will never use it again. I know, thats the sad story. first issue--delete-before / --delete-after and do not use wildcards on sync ( not sure they did that on docker-osx-dev ) See a good explanation here http://askubuntu.com/questions/476041/how-do-i-make-rsync-delete-files-that-have-been-deleted-from-the-source-folder |
I can confirm the CPU usage, this is the main reason I'm here working on docker_sync :) For Drupal case, it works well for simple files editing but it kills my MBP when bootstrapping a new project. Thanks for pointing |
it is important , when defining the sync point in rsync, to not use /src/dir/* ... that wildcard is a huge issue for delete, use /src/dir/ .. thats what we do here. |
Way too many side effects here. I think this should be rather done by unison, if someone really needs this |
rsync does not use --delete for now, but i worked with that already. I am yet not sure if we should add it to the defaults and make it possible to disable it ( there are some cases were you do not want this, i have such ) or keep the default as such.
Any suggestions?
The text was updated successfully, but these errors were encountered: