Exclude specific file types or large files from OneDrive syncing
Solution 1:
OneDrive added this feature a short while ago. Well somewhat. If you are using the OneDrive insider preview you can do this:
Copy %LOCALAPPDATA%\Microsoft\OneDrive\{OneDriveVersion}\adm
OneDrive.adml
(language file) to C:\Windows\PolicyDefinitions\en-US
and the OneDrive.admx
to C:\Windows\PolicyDefinitions
.
Then in the Group Policy Editor (gpedit.msc) go to Computer Configuration -> Administrative Templates -> All Settings and find Exclude specific kinds of files from being uploaded
. Now there you can specify specific file types or file names to ignore.
See also https://senpai.club/exclude-file-types/ and https://techcommunity.microsoft.com/t5/microsoft-onedrive-blog/celebrating-the-top-onedrive-moments-from-microsoft-ignite-2020/ba-p/1679821