I haven’t tried this myself, but I would try this:
C:\Users\*\OneDrive;C:\Users\*\OneDrive*
The “*” is a wild card, so is “:” - see more details here. So below I am demonstrating with capital letters = USERNAME.
Your path will never find the OneDrive folder because it doesn’t exist at: C:\Users\OneDrive\*
The personal OneDrive location is = C:\Users\USERNAME\OneDrive
The business OneDrive location is = C:\Users\USERNAME\OneDrive - BUSINESS
FYI - I don’t have any C:\Temp location on my Windows 11 25H2 system. If you google some locations for Windows 11 temp folders you will find them here:
If you wished to exclude specific users and not just all…then you can specify multiple exclusions each separated by semicolons.
Also recall that (according to doc) you can’t have exclusions and inclusions within the same client rules. You CAN achieve this via other methods:- for example - a virtual sub client.
The reason I include OneDrive and not it’s contents is because I **MAY** not wish to exclude the folder from backups. Thus making the restore process “cleaner” should it need to occur .
I am unsure as to how flexible the regex processor (wildcard interpreter) is. Hence, I don’t show how to use wildcards in the username field.
Did it work for you?
I’ve tried this: /onedrive/;/iCloud Photos/;Users:\OneDrive;Users:\Pictures\iCloud Photos;Users:\AppData
and this: \onedrive*;\iCloud Photos*;Users:\OneDrive;Users:\Pictures\iCloud Photos;Users:\AppData;\OneDrive*;\windowsapps*
Still see these:
Error getting complete file “GGUYmmvb2lKCyDvAmkY6|OneDrive/AmvacInv9122.xlsx”