Forum Discussion
pdteo
Jan 02, 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
Yann Gourvennec
Jan 25, 2022Brass Contributor
Sounds a bit convoluted but I'm making a note of it just in case I run into this problem once more. I use Crashplan instead of Cloudberry and what you wrote made me think that maybe I'm not using the best solution and certainly not the cheapest. I'm definitely going to investigate.
TAIngalls
Jan 26, 2022Copper Contributor
I did some more testing and found that files that are created on another system will show up as "Always Available on This Device" but won't be downloaded and will cause my backup to stall. To remediate this I created a small BASH script that finds any file modified since yesterday and runs the MD5 checksum on it. I then have my backup plan configured to run the script before running the backup. Hopefully this will cause any new files to be downloaded / actually available on this device.
#!/bin/bash
find /Users/MYUSERNAME/OneDrive/ -type f -newermt $(date -v -1d +'%Y-%m-%d') -exec md5 '{}' \; > /Users/MYUSERNAME/pre-backup.log
Hopefully this will work for other backup solutions as well.
- Yann GourvennecJan 27, 2022Brass Contributor
I got a Syntax error from your script, would you please be so kind as to send it as a .scpt file?
- TAIngallsJan 27, 2022Copper ContributorSorry, but I am not familiar with the scpt format. I run my script as a BASH script in iTerm2.
- Yann GourvennecJan 27, 2022Brass ContributorOK will have a look as soon as I can
- Yann GourvennecJan 26, 2022Brass ContributorSounds cool TAIngalls, I'll give it a go. I ran into the problem again this afternoon, but only for a particular folder. Hold on tight! I created a file on my hard drive, opened it with Word, saved it on my HD and ... it was uploaded alright on onedrive but didn't show on the HD. This bug is driving me potty. I'll give your script a go and keep you posted. Thank you kindly 🙂