This topic has been covered in other questions (e.g. this one here: On OS X, what files are excluded by rule from a Time Machine backup? ). However, due to the significant changes in the latest versions of the Mac OS, most of it is no longer valid. As an example, a built-in list of exclusions is no longer stored in /System/Library/CoreServices/backupd.bundle/Contents/Resources/StdExclusions.plist
Allow me therefore to pose the question again.
Using the System Settings way I am not able to add the Trash folder to the exclusion list because it does not show in the home folders list:
Is there another way to add it? Or is it already excluded by default?
I have tried to run
tmutil isexcluded ~/.trash and I get
[Excluded] /System/Volumes/Data/Users/username/.trash, but I don't know if I can trust it because if I run it for the Desktop in two different manners, I get two contradicting results:
tmutil isexcluded ~/desktop returns
tmutil isexcluded /Users/username/Desktop returns
sudo tmutil addexclusion -p /system/volumes/data/Users/username/.trash but this did not add Trash in GUI:
[EDITED Feb 26]: I am not sure how much to trust the system. As you can see from the screenshot above, I have excluded the Desktop. However, it seems that it is still being backed up. To test it, yesterday I have placed a file directly on the desktop and another one inside a folder. Today, when browsing the Time Machine backups, I can see that they have all been backed up, regardless of the exclusion: