I'm not sure what you mean. Users can add any directory as "external storage" in NextCloud. I have no way of knowing what the folder name will be. Nor if I use --exclude=/external/ can I be sure that that path will still be an external storage in the future.
I want to exclude based upon being external storage not based upon changeable folder paths.
I'm asking whether rclone can do this. Whether it's able to read file flags to determine whether it is external storage or not. Are you saying there is no way to determine this via WebDAV?
And I'm not sure what is not real-world about my example.
I want to back-up my NextCloud. I don't want to back-up anything from external storage which does not exist in the NextCloud at all, it's just a virtual mount.
some of what you posted is self-contradicting and confusing, very hard to understand exactly your use-case.
if you would only post a real world example, of what you are trying to exclude, we can better understand and help.
the output of rclone lsd would be helpful
It's very simple. I want to back-up my NextCloud. I don't want to back-up anything from external storage which does not exist in the NextCloud at all, it's just a virtual mount.
Please help me by explaining which part of that you don't understand.
I have posted an example several times. What part of it do you not understand? If you can't explain where you are lost in my example, I'm not sure how I can clarify any further.