How to exclude a folder from one-drive

Anonymous
2023-11-10T23:41:51+00:00

I thought I had a very simple problem. I have the My Documents folder synced in onedrive but a game is having some problems with save games so I want to exclude that folder, which is inside My Documents, from syncing. Basically I want to exclude the folder C:...\My Documents\My Game

First of, going into the OneDrive settings to stop that folder from syncing, I get an error "Can't stop syncing folder" Something about it being a My Document folder and I can not stop syncing it... even though some other sub folders in My Documents are not synced. I looked for a solution to this problem and found this link: https://answers.microsoft.com/en-us/msoffice/forum/all/cant-stop-syncing-folder/cc99375d-4041-4f51-940d-6c170d97afec

I tried stopping the backup for the My Documents folder and look, I can now unselect the My Game folder. Great :)

Oh, now the My Game folder is deleted. I don't want that. I did make a backup of it so I will just copy and paste it back to the right folder... and it's gone again. Why? Didn't I stop syncing this folder?

So now my only solution, to not have the My Game folder synced, is to close onedrive. All of it.

What am I missing? Why can't I just stop a folder from syncing? Why does the folder get deleted if I stop syncing it? And why does onedrive keep deleting that folder?

Microsoft 365 and Office | OneDrive | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

4 answers

Sort by: Most helpful
  1. Craig Long 19,020 Reputation points
    2023-11-11T05:33:46+00:00

    Hi Max,

    Welcome to the Microsoft community.

    Folders that are deselected at Choose Folders are removed from your PC but remain online only. They no longer sync to your computer. I don't believe you want that.

    I suggest you go into the OneDrive Settings > Sync and backup > Manage backup and turn off the sync of the Documents folders. But then, of course, the whole Documents folder will no longer sync to OneDrive. Files that you want to sync to OneDrive can be placed in the OneDrive folder at C:\Users\username\OneDrive.

    That's not a great solution but I hope it helps.

    Best regards,

    Craig

    Was this answer helpful?

    9 people found this answer helpful.
    0 comments No comments
  2. Anonymous
    2023-11-11T10:40:09+00:00

    Hi Max: To exclude a folder from OneDrive syncing, you can follow these steps:

    1. Right-click on the OneDrive icon in the system tray and select "Settings".
    2. Go to the "Account" tab and click on "Choose folders".
    3. Uncheck the box next to the folder you want to exclude from syncing.
    4. Click "OK" to save the changes.

    If you are unable to stop syncing the folder, you can try moving the folder outside of the OneDrive folder and creating a shortcut to it instead.

    Regarding the issue of the folder being deleted, it is possible that OneDrive is set to delete files that are removed from the synced folders. You can check this by going to the "Settings" tab in OneDrive and making sure that the "Files On-Demand" option is turned off.

    Was this answer helpful?

    5 people found this answer helpful.
    0 comments No comments
  3. Craig Long 19,020 Reputation points
    2023-11-11T22:32:26+00:00

    That is one of the things I also tried. I turned off the sync of the entire Documents folder but it did actually keep syncing. I just checked it again. I started onedrive, made sure that under backup folders the Documents folder was not ticked. I then put a new file in the specific games folder. Within seconds that file was also synced to onedrive in the cloud.

    So is there just no way to tell onedrive not to sync certain folders? Or to make it not sync at all?

    Move the Documents folder located in OneDrive back to C:\Users\username\Documents. Turning the sync OFF for the Documents folder does not put it back to where it originally came from. Stopping the sync just allows you to put the folder back. Supposedly, OneDrive won't grab it unless the sync gets enabled once again.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  4. Anonymous
    2023-11-11T10:20:27+00:00

    That is one of the things I also tried. I turned off the sync of the entire Documents folder but it did actually keep syncing. I just checked it again. I started onedrive, made sure that under backup folders the Documents folder was not ticked. I then put a new file in the specific games folder. Within seconds that file was also synced to onedrive in the cloud.

    So is there just no way to tell onedrive not to sync certain folders? Or to make it not sync at all?

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments