Use a file to ignore / exclude files or folder
Add functionality similar to a gitIgnore file or nomedia files. Allow a user to add a .ignore file to exclude local files or folders from being synced.
Example: I have NodeJS projects on my OneDrive but get sync errors because the file path is too long. The long paths are primarily extra modules that do not need to be synced. It would be nice to be able to exclude certain folders or files.
Hi, for this scenario we’d recommend putting the files outside of the OneDrive folder. The design is that all files in the OneDrive folder will be sync’d and files outside the folder will not be sync’d.
Amazingly arrogant to close this down for vot!. Each and every day OneDrive hangs because of locked files. As others comment: I want to have my projects available on OneDrive - it is very convenient - but I cannot control all temporary files.
Shimmy Weitzhandler commented
I'll be considering OneDrive when this feature is implemented.
Probably bc the feature would allow people to take advantage of their free storage more.
I guess most here understand how things are, and yet there are many times where users have no control over some contents.
In my case, my company decides to direct some internal software files inside my "Documents", and there is nothing I can do about it. As a result, OneDrive keeps failing to sync some files, and the only alternative I have is not syncing the standard "Documents" folder, which is not really what I'd like to do.
Want to sync my User Folder without the AppData folder to be synced. This feautre should be simple to develop.
Joachim Roppert commented
Is it really that hard to implement such a simple feature?? Wow!
it's just about incredible that this is not an option right now ... !!!
For the love of god, fix this. Rather than backing up what is essentially the core of my machine, which is far more than necessary, put a separate, singular, OneDrive parent directory which we can structure ourselves. Programs like Photoshop, Blender, Zbrush, etc. all establish databases within the document directory by default, and moving these is not always possible. I do not need every piece of scrap from the center of my machine being backed up, and chocking up bandwidth every 20 minutes. I need a small, clean folder that I can structure complete to my needs. Not a massive copy of my drive trying to upload every 10 freaking minutes. Please fix this.
Sean Cullinan commented
This feature needs to be added. I have commercial software products for example that build a file cache in the documents folder (Magix Music Maker). Maybe they shouldn't be doing that but they do. Because of this it is constantly syncing large image files that are not needed to One Drive. We need to be able to manually say "don't sync this folder" to prevent problems like this. It should be so easy to implement this, I don't get how this isn't a thing!
Tamas Farago commented
Seriously? Why is such an elementary feature not supported?
Unfortunately other sync applications aren't much better - looking at you Amazon Photos - so I guess you can take solace in that.
I can't vote, but +1 please.
Ed Johnson commented
I also need this feature.
"Hi, for this scenario we’d recommend putting the files outside of the OneDrive folder. The design is that all files in the OneDrive folder will be sync’d and files outside the folder will not be sync’d."
We can't do that. Please stop with the narrow attitude and provide people with what they need.
so you don't have to read in the comments more: vote on the new idea here: https://onedrive.uservoice.com/forums/913522-onedrive-on-windows/suggestions/18449926-reassess-the-possibility-to-ignore-or-exclude-sele
This is not always possible, i.e. if a compay decides to use Known Folder Move to sync known folders to OneDrive.
You canot exclude aything except file types (extensions) in this case.
Therefore I also think it would be very helpful to be able o define folders that should not be synced to OneDive.
For those who need this to share Visual Studio project files, my solution was to place output files (bin directory) on another location.
Open your project
Open project properties
Go to Compile
On the Build Output folder, select a folder outside the Onedrive folder
Currently onedrive is set to backup my documents folder, but Ubisoft's The Divison 2 operates using a ton of temp files in this folder to such an extent that I'm having perf issues while onedrive is running becuase it is trying to sync so many changes.
I have no control where ubisoft decides to put this folder, my only option is to disable onedrive. The problem here lies that I often forget to turn it back on so now there's have a huge pitfall for potential data loss.
This is an absurd oversight. Every developer knows the value of .gitignore, but no one thought users would have value in such a feature? Come on Microsoft.
This is a major oversight. It needs resolving asap.
Christof Grossfurtner commented
Full support for this idea, everything said. I'm using Tableau and can either put all working files outside (means I don't have it available on all devices) or have them inside - but then I need to deactivate the sync for the time I use Tableau, as the constant sync of all the temp files makes the application unusable due to locked file access...
My "two cents" (despite I subscribed to a $99 yearly paid OneDrive subscription) about this "ignore" request : I am using Visual Studio and I need the bin/ and obj/ folder to be ignored as I am sharing source code this way between several machine, including one with a poor internet connection.
I believe this feature will actually add value to OneDrive, and I am pretty sure you understand this.
Thank you for your support.
Graham Seiler commented
For some reason it won't let me vote, and for that I leave a comment agreeing with most of the previous comments. I have a few games and some big media (Anki) folders that OneDrive keeps trying to sync, that I do not want to sync nor remove from my computer. If I only have 15 GB on OneDrive, and I have significantly more on my computer, why can't I choose which files in my Documents folder to sync to OneDrive instead of OneDrive automatically choosing for me and giving me error messages on my PC that I'm out of space and things aren't backing up right?