cweagans / docker-bg-sync

A container that syncs files between two configurable directories.
224 stars 39 forks source link

On Windows, the container is only synced once when it starts #31

Closed patriceckhart closed 2 years ago

patriceckhart commented 2 years ago

On Windows the sync works. however, it only works once. If a change is made to the host, nothing will be synced. If you restart the container, the changes are synced. It works fine on Mac.

Can you help?

cweagans commented 2 years ago

I would not recommend using this on Windows. If you run Docker in WSL, plain bind mounts will be much faster and more reliable than this method. I would also recommend looking into Mutagen on Mac environments. It syncs faster than Unison and is also more reliable with the downside of having to do some one-time setup on the host. If you're using ddev for your local environment (which I highly recommend), this functionality is built in and you just have to turn it on (no host setup required): https://ddev.readthedocs.io/en/latest/users/performance/#using-mutagen

cweagans commented 2 years ago

(just to clarify, I would not recommend using this repo in general at this point)

patriceckhart commented 2 years ago

Thank you. I don't use ddev. I have an lightweight custom image in development and also in production. But I'll try it with mutagen.