Sure, I use stuff like this that runs every X often. Like this copies stuff from local server paths to dropbox every 10 mins. I give a 10 second timeout for the deletion to occur and for dropbox to "breath" and index the deletion and then copy the new files. I also use timeout because I like to see a time counting because that way when I login to the server, I periodically check to make sure its still running and else I would have no way of knowing if its frozen. However while that seems logical I have a bunch of batch and pything scripts running in cmd prompt windows across a dozen servers and not a single one of them have ever failed in nearly a year. But I guess it could happen.
I also find that with constant updating that dropbox sometimes freezes or crashes. Or it will simply say its up to date but its not, its not syncing anything. A restart of the app fixes it, but with loads of servers I don't have time to track it all, and why would I anyway you ask? Well I wouldn't its stupid to not have a pc do something for you when it can. I use a batch file to kill the process every 12 hours and then a python app that monitors the thread and as soon as it gets killed it restarts it. I suppose batch could do that too, but I already knew how to do the python bit so no point in learning that in batch and vice versa.
I also find that with constant updating that dropbox sometimes freezes or crashes. Or it will simply say its up to date but its not, its not syncing anything. A restart of the app fixes it, but with loads of servers I don't have time to track it all, and why would I anyway you ask? Well I wouldn't its stupid to not have a pc do something for you when it can. I use a batch file to kill the process every 12 hours and then a python app that monitors the thread and as soon as it gets killed it restarts it. I suppose batch could do that too, but I already knew how to do the python bit so no point in learning that in batch and vice versa.
Code:
cls
:start
del /q "C:\Users\loopline\Dropbox\some-path\*.*"
Timeout 10 /nobreak
copy "C:\some-path\*.*" "C:\Users\loopline\Dropbox\some-path"
Timeout 600 /nobreak
goto start