I have seen the original question on this. The answer is not practical. While my need is different, I do also need this very basic feature - switch off and then later switch on syncing via a command line script
I am a javascript develioper using the package - "grunt". It uploads stuff to a repository and using "npm" which downloads stuff from a repository for me to work on
I keep my working area in dropbox so that I can get to undo errors etc and also hop between machines.
dropbox synch crashes npm and dropbox sync raises fatal errors via grunt - this does not happen when synching is switcched off manually then switched back on manually later. This is because the dropbox processes lock the files whilst synching
I need to either abandon dropbox completely or find a way to allow grunt to switch off and back on dropbox synching.
Please do not suggest again per the other ticket to killtask the dropbox as your previous comments note correctly that it can corrupt files