-
Notifications
You must be signed in to change notification settings - Fork 39
rm foo.txt
not synced to host
#16
Comments
rm foo.txt
not synced on hostrm foo.txt
not synced to host
Huh. That's interesting. Not sure what I can do about it though. Sounds like a Unison bug. |
This happens because in the default configuration the |
@dj95 Wow Thanks! How exactly do you access the log files? |
The default unison log-file is |
Probably worth fixing this. Inside the container there can be deletions of compiled twig, css/js, etc. You dont want that bloating and confusing the IDE on the host. |
Same
docker-compose.yml
as in the README only addedSYNC_PREFER=newer
. Adding files are synced just fine in both directions. Removing files in contrast is synced in only one direction host -> container but not vice versa.Steps to reproduce:
$ git clone https://gist.github.com/leymannx/277095bcc750300e749d5ae185181b74.git bg-sync
$ cd bg-sync
$ docker-compose up -d
(wait until done)$ touch foo.txt
$ docker exec -it -w /var/www/myapp bgsync_web_1 bash -c "touch bar.txt"
$ ls
$ docker exec -it -w /var/www/myapp bgsync_web_1 bash -c "ls"
Now delete the files:
$ rm foo.txt
$ docker exec -it -w /var/www/myapp bgsync_web_1 bash -c "rm bar.txt"
$ ls
$ docker exec -it -w /var/www/myapp bgsync_web_1 bash -c "ls"
macOS 10.13.3
Docker for Mac (stable) 17.12.0-ce-mac49 (21995)
I guess for most people that's just OK as they are more interested to sync from the host into the container which works just fine also for removing files. Also as
$ echo "bla bla bla" >> file.txt
inside the container is synced still fine to the host. It's onlyrm
that's not synced.The text was updated successfully, but these errors were encountered: