How To Force Microsoft OneDrive To Sync More Often

How To Forcefulness Microsoft OneDrive To Sync More than Frequently

I use a number of different deject storage services for different purposes, because they each take sure advantages and disadvantages. What I similar about Microsoft OneDrive is that it has a relatively small memory footprint and doesn't bog downwards the system like other cloud storage clients that constantly run in the background.

Cloud Storage Provider Memory Usage*
BoxSync 107.964K
Dropbox 89.120K
OneDrive two.860K

*measured while uploading

Nonetheless, one problem that I've plant with OneDrive is that it's sometimes really slow to sync. Let's say I work on a document on my laptop, and so a few minutes afterwards move to the sofa and try to pull upward the file on the tablet … no luck, because OneDrive seems to sync files only once in a millenium.

I looked for a "sync now" button everywhere but came up empty. Scouring official forums, there were many people who had the same question but only canned answers.

Sometimes, even later on a few hours or days (without reboot), OneDrive nonetheless hadn't noticed and synced my changes. And what'south the utilize of a cloud storage arrangement that is always days behind?

Have You Tried Turning information technology Off and On Once again?

At present … information technology turns out that if you quickly close the client (or impale the process), and so restart information technology again, OneDrive wakes from its slumber, starts analyzing the changes and begins to sync!

So now, whenever I want to brand sure that OneDrive syncs my changes before I move to a different device, I simply need to kill and restart the client. Here's a elementary batch script to automate that process:

@echo off onedrive.exe /shutdown start %localappdata%\Microsoft\OneDrive\OneDrive.exe /background              

Just (conform and) paste this code into Notepad, relieve information technology equally sync.bat or something so, whenever you want to give OneDrive a whack on the head gentle reminder to sync your files, running the script volition impale and restart the process for yous.

On top of that you can also utilise Task Director to run this script once per day or something.

The only downside that I've constitute with this is that one time OneDrive restarts it pops up an explorer window of the folder, which is a pocket-size annoyance, still it notwithstanding would be preferable not to require another action (close folder).

UPDATE: I've updated the higher up script and then that no windows pop upward anymore. Thank you Samuel for the hint well-nigh "/background" which I hadn't been aware of.

UPDATE: I've changed the taskkill command to "onedrive.exe /shutdown" to prevent the Onedrive icon from getting stuck in the taskbar. Thanks "FatCharlie".

It'southward not perfect, but until Microsoft inserts a "sync now" button or just makes the syncing procedure more real-time, it'south better than nothing.

UPDATE: Apparently, at that place is a native manual sync option afterwards all, but only in the Windows viii OneDrive app, not in the Windows vii customer. Read more hither. Thanks Joe for the tip-off.

onedrive_sync3

UPDATE: Another interesting way to force OneDrive to sync without closing the client merely reached me via email. Thanks Rudi! Here's how it works: Drib a simple text file in your OneDrive folder. Now, whenever you brand a change to that file, i.east. edit and salvage it, OneDrive will syncallyour files.

Curiously though, this only works when the text file is in the master OneDrive folder. I tried updating a text file on my desktop (which is included viaSymbolic Linkin my OneDrive folder) and that didn't practice the fox.

How To Force OneDrive To Sync When Your Calculator Wakes Up

For the past couple of months I've been using Windows Task Scheduler to start the above script once per mean solar day. However, I even so sometimes found myself missing newly updated files when the changes were made before or after the scheduled time. Since I'g working on a laptop most of the time and my working sessions are started and ended with opening and closing the chapeau, I started looking for a style to run the above script whenever I open my calculator. Here's how it works.

    1. Start Windows Task Scheduler
    2. Create a New Task
    3. Under Triggers, Click "New"
      onedrive-sync1
    4. Select "On an event" from the "Begin the task" dropdown menu. Then select "Custom" and click on "New Event Filter".
      onedrive-sync2
    5. In the popup, select XML and postal service the code below into the box:
      onedrive-sync3
<QueryList>  <Query Id="0" Path="System">  <Select Path="System">*[System[Provider[@Name='Microsoft-Windows-Power-Troubleshooter'] and (Level=4 or Level=0) and (EventID=1)]]</Select>  </Query> </QueryList>              

Now, under "Actions" merely configure your task to run the batch script I've talked virtually in the beginning of the mail service and yous're good to become. Your computer will now strength OneDrive to sync whenever information technology wakes upward.

UPDATE:Should you feel an result where the OneDrive icon doesn't appear in your Organisation Tray afterwards launching via Task Scheduler, make sure that the option "Run just when user is logged on"ischecked and "Run with highest privileges" isnot checked. Thanks Mike for the tip!