I want to have my todo.txt file synchronized on PC and Android via a cloud service in both ways and instantly on change. Let's call this true instant sync. Unfortunately, I have not found a good solution yet and I don't understand why.
My setting: Markor to edit todo.txt on Android, todo-txt script to edit todo.txt on my Linux PC, official Dropbox client on both Android and PC.
In order to get true instant sync, I tried FolderSync and Autosync for Dropbox. However, I think that neither of these apps does what I want flawlessly and their precise function is not really documented. For example, Autosync for Dropbox has the options "autosync", "instant upload", "clever detection of changes" (available in the pro version) and one can also set synchronization in given time intervals, all independently of each other. What do these options do precisely? FolderSync seems to support synchronization in time intervals only, which is not what I want.
I imagine that a true instant sync solution should work as follows:
- There is an interrupt whenever something is written in the shared folder .
- The interrupt is associated to the sync client, which sends the information about changed files to the sync server immediately.
- The sync client pings the sync server whenever its network address changes.
- When another sync client uploads something to the sync server, the sync server broadcasts the information about changed files to all sync clients.
- There is an interrupt whenever a packet from the sync server is received.
- The interrupt is associated to the sync client which updates the local files immediately.
- How do 1--6 differ from the reality and what are the problems? Aren't the interrupts 1 and 5 already implemented on the system level?
- Can I configure Autosync for Dropbox or FolderSync (+ Tasker) so that I get true instant sync which was defined above?
- Do you know any other solution for true instant sync?