What can I do to prevent backing up cache directories? I would like to exclude them please. I thought that somehow, at least one of the methods I tried might help. No joy.
Curious, what does .kopiaignore do? My (obviously incorrect) assumption was that if a directory contained an empty file named .kopiaignore in it, that directory and its subdirectories would be ignored and would not be included in a snapshot. What does it do instead?
CACHEDIR.TAG exists within a kopia folder, inside the ~/Library/Caches directory.
Why would you not exclude the whole caches folder?
Your kopia policy... command can not work obviously. You exclude .cache and the directory name on macOS is Caches .
I don’t understand why my kopia policy command so “obviously” can not work. Did you make that comment because you only read part of the command I wrote, or did I actually misunderstand something?
Well… should you ever be in need to restore your account on macOS, the contents of the cache folders will only be of limited use. There are al lot of objects with guuids which would change on a new install anyway.
~/Library/Caches is just a waste to backup in a long term scenario. Save the space and maintain an actual backup of your home folder using something like CCC on macOS. As much as I love Kopia, there’s no faster way to restore your account, than a cloned home folder.
As for the syntax, you will need to omit the leading / so if you wanted to exclude ~/Library/Caches you’d simply put Library/Caches in to the policy.