Automatically exclude Time Machine excluded files

On macOS applications can mark transient and cache files with an extended attribute com.apple.metadata:com_apple_backup_excludeItem to inform time machine that those files and directories should not be backed up. Since the application developers have much better idea about what files need and need not be preserved this approach works better than centralized exclusion list.

Some notable third party backup tools (Duplicacy, Arq, CrashPlan) support exclusion by that attribute as well.

Kopia should too. This cuts down drastically on the need for the user to write (and maintain!) elaborate exclusion patters.

Would like to +1 this request. Would love to switch to Kopia but the burden of creating an enormous exclusion list is too high.

Filed Automatically exclude Time Machine excluded files · Issue #1539 · kopia/kopia · GitHub to track.

1 Like

A little noteworthy bit: a few folders are excluded by time machine implicitly, without relying on the xattr. Those folders are (at least; using the .kopiaignore syntax):

**/Library/Logs/**
**/Library/Caches/**
**/.Trash/**

First two are directly under ~, /, as well as inside Containers, and the last one — under ~, for each user.

Those exclusions should be added implicitly when exclusion by time machine is enabled by the user.

(Glad to see the FR gets some traction, OTOH I could have filed the GitHub issue myself and avoid 8 month gap…)