The script will inspect all running containers and start notifyingĬontainers about changes in mounted directories. Usage is simple too: docker-volume-watcher C:\path\to\mounted\directory Install is pretty simple (the script needs to be installed on Windows): pip install docker-windows-volume-watcher You can use docker-windows-volume-watcher for example. The workaround is to use some 3rd party tool that tracks changes in mounted windows volumes and notifies Docker containers about it. As Jochem Kuijpers mentioned the issue is related to a file system notifications which don't work properly in case of Windows and mounted volumes and this is a known issue. Periodic re-scan of all folders added in Sync (occurs every 10 mins by default and can be configured in settings)Īs you may know Docker on Windows works using a Linux VM and relies on SMB/CIFS support in Linux kernel. Im looking for thoughts on the what docker you use to sync files.These notifications are just an OS kernel mechanism, for example Inotify API is used on Linux. File system notifications Resilio Sync subscribes to (to obtain info about changes in a file system immediately).Resilio Sync uses two mechanisms to track changes in a file system: While conventional bidirectional sync tools do a solid job with basic 2-way file synchronization across at most 2 computers, Resilio scales to many endpoints and locationskeeping all of your files current and accessible to users and applicationsglobally, across as many places as needed. It takes about 10 minutes for even small files to sync when they are added to the host's directories that are bind mounted into the containers.Ĭonversely, if I docker exec into the containers and create files or folders the syncing happens immediately. Second Resilio container (I've updated the configuration to listen on port 55556 to avoid a conflict with resilio1): docker run -d -name resilio2 -p 82:8888 -p 55556:55556 -v /c/Users/Test/resilio/resilio2/config:/mnt/sync -v /c/Users/Test/resilio/resilio2/data:/mnt/mounted_folders/data -restart on-failure resilio/sync I'm testing out Resilio (formerly BitTorrent) Sync using two docker containers on the same host, and I've noticed that syncing files is very slow when they are added via bind mounts.įirst Resilio container: docker run -d -name resilio1 -p 81:8888 -p 55555:55555 -v /c/Users/Test/resilio/resilio1/config:/mnt/sync -v /c/Users/Test/resilio/resilio1/data:/mnt/mounted_folders/data -restart on-failure resilio/sync Here is a nice overview of the mentioned solutions along with some others that hopefully might be of help. By default scheduler has 2-hours scale, 24-hour format, but you. To set a rule click on a day-hour cell, and put desired Download/Upload speed. Available in Sync Preferences -> Advanced. Feature is available in Resilio Sync v.2.4 in Pro version only. Cloud storage can be very cheap or even free nowadays and having another copy somewhere else is a very good option because of multiple obvious reasons. Resilio - Would prefer a free option Rsync - Need a windows gui Syncthing - got it set up but the original scan looks like it will take about a day and a half, Also unsure how it handles changes in the directory. Weekly scheduler is a feature that lets you set bandwidth limits on certain days, certain hours. The only problem that I have is that I don't manage to achieve a direct connection to the client, instead everything is handled by a Resilio rely. Another option that backup software can provide is a cloud tier. How to propperly setup Resilio sync I added the Linuxserver.io - Resilio Sync docker and it is working perfectly fine. My data is mainly photo’s, Plex, personal data and music recordings. Several important directories are also stored in the cloud in Dropbox. Both NAS’s are on the same network but in separate buildings. This way you can keep some versioning of files which might be extremely helpful. 1 I have a DS218 as my main server and an UnRAID server as a backup. Unless you have a very special and specific case that requires such kind of approach I would rather stick to some sort of backup solution like RClone or Duplicati instead of regular file-based synchronization. Unraid has made almost every aspect of home server management easier for me. Download the desktop app today for your preferred operating system below. Just run them at a regular manner and it will work. Resilio Sync Home is a simple yet full featured solution for file sync and sharing thats powered by P2P technology for fast and secure transfers. Rsync, Freefilesync, Unison - dozens of solutions will do the job. After this one is done you can use any Linux-based tool that can grab the files from your SMB share and put them into a folder on UnRAID. As already mentioned above, you need to expose your files over SMB for UnRAID to be able to access these files and copy them over.
0 Comments
Leave a Reply. |