Forum Discussion
pdteo
Jan 03, 2022Brass Contributor
MacOS Monterey - Disable Files on Demand
I use OneDrive to synch all my files with another computer at work and just upgraded to Monterey. I need to be able to search for data in the files using Spotlight/Quick Look etc. so I typically do a...
- Jan 03, 2022That sounds strange. I would expect it to be one or the other as you say. On my own Mac running Monterey I cannot duplicate your issue. As you say, you can't disable FOD from the OneDrive client settings but you should be able to do this with a PList as per https://docs.microsoft.com/en-us/onedrive/deploy-and-configure-on-macos#filesondemandenabled
garethoakes1
Jan 28, 2022Copper Contributor
Well this is a complete sh!t-sh0w. I had all my files wiped today, thanks Apple and Microsoft for such a great solution </sarcasm>.
find . -type f -exec head -c 1 {} \;
I set my folders to be "Always available on this device" and forced the sync using the above. This is faster than md5 because it only reads the first byte from every file. That is enough to trigger the sync. MD5 checksum requires all bytes in the file to be downloaded first, and then needs CPU time to compute the checksum.
- Yann GourvennecJan 28, 2022Brass ContributorYou need to be a sysadmin these days to use cloud sync don’t you? Baffling. I’ll back all my files up on a stupid disconnected hard drive next weekend. One never knows. I lost a whole chunk of my client archive yesterday. Fortunately I was able to retrieve everything from my Time Capsule. Close shave.