Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Honor com_apple_backup_excludeItem on MacOS #478

Closed
plasticrake opened this issue Aug 6, 2018 · 0 comments · Fixed by #498
Closed

Feature Request: Honor com_apple_backup_excludeItem on MacOS #478

plasticrake opened this issue Aug 6, 2018 · 0 comments · Fixed by #498

Comments

@plasticrake
Copy link
Contributor

Reiterating @saspus's forum post

On MacOS an extended attribute com.apple.metadata:com_apple_backup_excludeItem is used to tell backup software that the particular file does not need to be backed up. This is a more robust solution compared to separately maintained global exclusion list as the metadata is kept physically close to the the data it describes; that way applications, who have much better idea about how to manage their files, can decide what gets backed up and what is transient and shall be skipped.

Time Machine honors that flag, as does CrashPlan and even Arq.

I currently mimic this using a pre-backup script that dynamically creates a filter, but this can be slow when run every time.

cd -P $backup/..
find . -xattrname "com.apple.metadata:com_apple_backup_excludeItem" -exec ls -dp {} \; | sed s/^\.\\//-/ > $backup/filters.metadata
cat $backup/filters.local $backup/filters.metadata > $backup/filters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant