tmutil addexclusion doesn't work on APFS

Originator:supergradha
Number:rdar://42931102 Date Originated:August 4 2018, 2:13 PM
Status:Closed Resolved:Mojave 10.14 beta 1 (18A293u)
Product:macOS + SDK Appkit Product Version:10.13.6
Classification:Other bug Reproducible:Always
 
Summary: The command `tmutil addexclusion` doesn't seem to work, parameters keep being included in the backup as reported by `tmutil isexcluded test`.


Steps to Reproduce:

Commands run on high sierra 10.13.6 (17G65):

[0:gradha@sera.local:0] [/tmp]$ mkdir test
[0:gradha@sera.local:0] [/tmp]$ tmutil isexcluded test
[Included]    test
[0:gradha@sera.local:0] [/tmp]$ tmutil addexclusion test
[0:gradha@sera.local:0] [/tmp]$ tmutil isexcluded test
[Included]    test
[0:gradha@sera.local:0] [/tmp]$ tmutil removeexclusion test
[0:gradha@sera.local:0] [/tmp]$ tmutil isexcluded test
[Included]    test
[0:gradha@sera.local:0] [/tmp]$ rmdir test
[0:gradha@sera.local:0] [/tmp]$ 


Expected Results:

Commands run on capitan 10.11.6 (15G22010):

[0:gradha@capi.local:0] [~$]$ mkdir test
[0:gradha@capi.local:0] [~$]$ tmutil isexcluded test
[Included]    /Users/gradha/test
[0:gradha@capi.local:0] [~$]$ tmutil addexclusion test
[0:gradha@capi.local:0] [~$]$ tmutil isexcluded test
[Excluded]    /Users/gradha/test
[0:gradha@capi.local:0] [~$]$ tmutil removeexclusion test
[0:gradha@capi.local:0] [~$]$ tmutil isexcluded test
[Included]    /Users/gradha/test
[0:gradha@capi.local:0] [~$]$ rmdir test


Actual Results:

On High Sierra the command doesn't change the state of the test directory to excluded.

Version/Build: 10.11.6 (15G22010)

Configuration: APFS.

Comments

Apple Developer Relations August 7 2018, 4:38 AM

Please verify this issue with the macOS Mojave 10.14 beta 6 and update your bug report at https://bugreport.apple.com/ with your results. macOS 10.14 beta 6 (18A353d) https://developer.apple.com/download/ Posted Date: August 6th, 2018 If the issue persists, please attach a new sysdiagnose captured in the latest build and attach it to the bug report. Thank you. macOS sysdiagnose Instructions: https://developer.apple.com/services-account/download?path=/OS_X/OS_X_Logs/sysdiagnose_Logging_Instructions.pdf For a complete list of logging instructions visit: https://developer.apple.com/bug-reporting/profiles-and-logs/

Apple Developer Relations August 29 2018, 1:56 AM No response received. Now closing this bug.

By supergradha at Oct. 13, 2018, 4:31 p.m. (reply...)

Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!