We Want to Hear From You! What Do You Want to See on the Community? Tell us here!

Forum Discussion

jega's avatar
jega
Helpful | Level 6
6 years ago

How to stop syncing using a script?

I know how to stop syncing manually, but I need to do it automatically before the backup start automatically in the night. Any idea how to start / stop syncing by a command in the .bat file?

6 Replies

Replies have been turned off for this discussion
  • Jane's avatar
    Jane
    Icon for Dropbox Staff rankDropbox Staff
    6 years ago
    Hey jega, I understand that you’d like to automate this process, however this inquiry pertains to setting other parameters, independently from Dropbox, so I’ll just leave this question open to our Community of users; maybe someone could offer their insight on how you’d best go about on this request. 
     
    Thanks again for taking the time to drop us a line on the Community & have a wonderful day ahead!
  • jega's avatar
    jega
    Helpful | Level 6
    6 years ago

    No, I simply need to stop syncing without fiddling manually with icon in tray. It may be just stopping syncing or (worse) stopping Dropbox (application), so after issuing such a command I should be sure, that Dropbox would not change the files until I start it again i.e. during the backup process.

    Most applications can be started and stopped from command line, probably Dropbox too.

  • rwdk's avatar
    rwdk
    New member | Level 2
    6 years ago

    Use the Windows taskkill command.

    TASKKILL /F /IM dropbox.exe /T

    (For more info start command prompt and type taskkill /?)

     

  • Здравко's avatar
    Здравко
    Legendary | Level 20
    6 years ago

    Hi jega,

    For almost full control over the application, if that's very important for you, switch to Linux (only few actions are still restricted to GUI interface - move the Dropbox dir in fact). :wink: Many companies do that! You can use independent data server machine, running Linux or just virtual one, depending on what you really need.

    Using taskkill could be dangerous! Even very unlikely, active sync process could be stopped while in action, which could lead to troubles - disturbed data. :scream:

    Good luck!

  • jega's avatar
    jega
    Helpful | Level 6
    6 years ago

    Thank you, but I'm afraid it is too complicated for me. After all I need just stop the sync for a short time once a day to be shure that the backup image (inluding Dropbox folder) is consistent. I use Windows 10 and thugh I'm not happy with this there is many reason to keep it like this.

    As to risk with killing the process I think it is about same as closing the system, isn't it? I can close system at any time and Dropbox must be prepared for such a situation, right? So I think I can give it a try and see what's going on.

    On the other hand maybe I don't need to stop anythig?

  • Здравко's avatar
    Здравко
    Legendary | Level 20
    6 years ago

    Actually it's not like a system close! System close is process and system message is send to every one application which gives the opportunity the applications closing properly. 'taskkill' stops (pause or kill) particular process. If at that moment there are incomplete operation (for example buffered, but not saved still content), data could be left in inconsistent state and accordingly inconsistent backup.

    What You really need? That's only on your opinion. Generally, if at the backup creation moment there is not any chance something to be in sync progress (ensured somehow), no stop is really need.

    About 'too complicated': It's not so complicated really. The installation could be virtual, as noted above, and You don't have to change your current installation (except virtual machine install of your choice - QEMU, VirtualBox, VMware, ...).

    The choice is yours! :wink:

About Integrations

Find solutions to issues with third-party integrations from the Dropbox Community. Share advice and help members with their integration questions.

Need More Support

The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.

If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.

For more info on available support options for your Dropbox plan, see this article.

If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!