'How to exclude a hidden MacOS folder like Library/Spotify from Time Machine?

After figuring out that Time Machine always commits a lot of stuff whenever I use Spotify (using sudo tmutil compare "path1" "path2" ), I wanted to remove Spotify from being backed up. In the time machine options, it is easy to add folders to be ignored. So I added Spotify from the application folder. However, I wanted to ignore also

/Users/***/Library/Application Support/Spotify/PersistentCache

for every user, but was not able to do so. The problem is that Library does not show up in the final dialog, being sort of a hidden folder.

Any hints to solve this?



Solution 1:[1]

Use this shortcut when the dialog opens.

CMD + Shift + .

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Mert A?an