Hello @Андрей Михалевский
You could check in this thread, what they have exclude for UPD.
Server 2012 R2 RDSH User profile disks, exclude temp directories
Our solution was to change UPD settings from "Include all data", to "Only include selected data".
This way, rather than attempting to exclude folders we didn't want, we simply include folders we do want. By default, appdata\local and all sub directories are excluded, meaning the temp folder is also excluded, allowing us to do what we want to do.
Best Regards
Karlie
----------
If the Answer is helpful, please click "Accept Answer" and upvote it.