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.
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?
How hard can it be to add this feature?
OneDrive for me is useless without some way to deselect files to be synced.
Unclever title commented
I regularly use keep Visual Studio Projects within my OneDrive Folder to make sure I have access to them at home and work it's a quick convenient back up option (though obviously not a full versioning solution). Visual Studio has all kinds of temporary files that OneDrive decides to try and sync while visual studio is open, this means every time I want to use Visual Studio at work I have to pause syncing elsewise OneDrive slows down my hard drive to a snail's pace since it can't sync these temp files that are still in use and really don't need to be synced but keeps trying to anyway.
It would be EXTREMELY helpful if OneDrive could exclude either specific files or exclude hidden files and folders or could have syncing automatically paused while a specific program is running or have an option to pause syncing for about 4 hours instead of merely 2 hours or a full 8 hours (cause some of us still like to shut our computers down when we go home from work meaning there has to be SOME time for OneDrive to be able to sync and I'm not staying past 5PM every day just to make sure the files back up right).
Or here's an idea, how about setting syncing on a customizable schedule?
Any one of those things would be far more helpful than the current none of them we have now.
The fact that this hasn't been added yet blows my mind. This is pathetic.
Richard Dean Wickens commented
And as for NOT RIGHT NOW, "the design in that all files in the OneDrive folder will be sync'd and files outside the folder will not by sync'd" might have worked fine when it didn't replace my documents folder! You know, the folder where EVERY game tries to save to.
Richard Dean Wickens commented
I second this, I do not need every save game and mod updated to MorOne drive, I can tell MorOne drive to keep it on MorOne drive and remove it from my PC, but I can't tell it to leave it on my PC and exclude it from my MorOne drive. WHY? My MorOne drive is full because it's full of Skyrim savegame files. It's enough that they are on my PC, I do not need them immortalised on MorOne drive as well.
whats up with this in 2020? i sync Document folders, but some apps i use write to this folder with files i do not want synced.. (tmp files etc) which makes the sync go all the time which somehow makes all my fans go crazy
Johney Aazad commented
that's a fantastic suggestion, to use the service that we pay for we need to segregate our files on our own... bravo! I mean its not like Microsoft is an IT company that they would know about ignore files? Earn your keep son... don't make nonsensical suggestion to dodge the bullet!
"Not Right Now" responded in 2015. How about now, 2020?
My view is just like everybody else commenting here, the feature is needed.
This is not a god solution. You need to be able do exeptions.
Alan L commented
I have had issues with using Python virtualenvs and R's packrat (not to mention the fact that R wants to store its packages and libraries in ~\Documents, which happens to point to OneDrive\Documents), .git folders, IDE project folders, &c. across multiple PCs.
It's really a chore to have to go in and manually unselect `.RData`, `.RProj.user`, `venv`, all these host-specific files and folders that are created by all these tools that real people use, especially when Git has had this problem solved for years and years.
Recently, trying to resolve sync issues (deleting files which I would not have wanted synced in the first place!) has led to consistently crashing my PC (the culprit looks to be cldflt.sys, whatever that is). There doesn't seem to be a way to solve it, so these files are stuck in limbo. I can't delete them off my hard drive or Windows crashes, but they don't exist in OneDrive, so my machine hasn't gotten the memo. This is all to say that if I'd had a .ignore file, this wouldn't be happening.
The accepted answer -- now nearly 5 years old -- is especially unhelpful, given that Windows 10 will make your default Documents folder OneDrive\Documents *by default*, but many applications (like R) also put their (system-dependent) files in Documents *by default*.
Because we have to manually look for these folders and opt out of syncing them, the price of a consistent sync is apparently eternal vigilance -- or how about just a **** .ignore file?
Echoing what everyone else has said. This is a basic feature that is desperately needed! And I can't even comprehend the response given. Did it even occur to you that perhaps there are folders within a data structure that are more important than others? Or that while a project, as a whole, is extremely vital the icon pack or readme or any number of things aren't necessary to sync? I suppose I should keep an eye on future github updates as the ignore feature is clearly not needed in your estimation.
Navid Eivazzadeh commented
As you know some applications create a folder in the documents folder and save some large files in it. I want to exclude them from syncing. If that application doesn't provide a way to change save location of those files then the only way to exclude them will be through OneDrive settings.
Alexander de Jong commented
Hi, I would like the .ignore feature Thanks!!!
Tom H commented
I have had the same complaints as the rest of this group, but I just ran across an app that appears to solve them. It's called Insync and it works with both OneDrive and Google Drive. I have no connection with the company. I just bought it on Black Friday 2019 when they had a half-price sale, so I don't claim to be an expert after using it for an hour or two. Normally an individual license is $30 one-time which is good for multiple computers but only one user account, so if you want to use it with both a OneDrive and Google Drive account that counts as two licenses. Team accounts are $50 per account. You can try it free for 15 days.
You can sync any folder including those on external drives and it supports full .gitignore syntax, although I haven't had a chance to try that yet. It also supports Windows, Mac, and Linux.
I'm not sure if it supports the Personal Vault feature yet, but I prefer to use Cryptomator. It's a free open source app (donations accepted) that transparently encrypts files before saving them in your cloud drive. So I can store confidential documents and not have to worry about Microsoft or anyone else having a back door. They also have iPhone and Android apps but they're not free (about $10).
I hope this helps someone, here is the link for Insync:
and for Cryptomator:
Michelle Cassidy commented
What a ridiculous answer. I personally am insulted - as if any of us here didn't find that answer before landing on this page. Just wow. This is needed. I cannot click any of the vote buttons on this site. Nice platform. This is ridiculous that standard features developers need are not even considered in this platform. This is a good way to chase developers away. Please explain what harm this would cause to simply not upload files with .ignore? Non-developers wouldn't know to use it and developers know exactly what it does. Seems like arrogance to me also.
Fuck You Microsoft commented
What a ****** answer Angus, this basic functionality is needed otherwise we may as well use any other cloud storage tool. **** if it were my decision I wouldn't even be using this colossal waste of a tool but since I'm forced to due to work I've gotta deal with all my node modules using up all storage space, slowing down my system and to add insult to injury, I get a ****** notification every time I do anything with the node modules folder
Lucas Reis commented
I have migrated my code to Mega, it allows us to exclude folders from sync (eg. node_modules, vendor and so on).
My computer has crashed and I lost all of my recent code because OneDrive was wating time syncing node_modules folder instead of my code, that's what matters for me. I am so disappointed.