[GH-ISSUE #316] Optionally exclude files that are excluded from Time Machine backups? #138

Closed
opened 2026-06-08 11:25:50 +03:00 by zhus · 3 comments
Owner

Originally created by @tko on GitHub (Mar 1, 2023).
Original GitHub issue: https://github.com/bootandy/dust/issues/316

In addition to seeing how much disk space is used locally it's also useful to see how much is getting backed up, especially if you're in a semi-habit of excluding folders and files (tmutil addexclusion) from backups manually.

Originally created by @tko on GitHub (Mar 1, 2023). Original GitHub issue: https://github.com/bootandy/dust/issues/316 In addition to seeing how much disk space is used locally it's also useful to see how much is getting backed up, especially if you're in a semi-habit of excluding folders and files (`tmutil addexclusion`) from backups manually.
zhus closed this issue 2026-06-08 11:25:50 +03:00
Author
Owner

@bootandy commented on GitHub (Mar 5, 2023):

You can use dust -X file_or_dir_to_not_count to ignore certain files or directories. You can also use dust -v REGEX to ignore files that match the REGEX

I don't really want to have dust integrate with whatever time machine does as I'd like to keep it separate from other tools.

<!-- gh-comment-id:1455044908 --> @bootandy commented on GitHub (Mar 5, 2023): You can use `dust -X file_or_dir_to_not_count` to ignore certain files or directories. You can also use `dust -v REGEX` to ignore files that match the REGEX I don't really want to have dust integrate with whatever time machine does as I'd like to keep it separate from other tools.
Author
Owner

@bootandy commented on GitHub (Mar 5, 2023):

This request looks similar to https://github.com/bootandy/dust/issues/265 so I'll close this.

<!-- gh-comment-id:1455045040 --> @bootandy commented on GitHub (Mar 5, 2023): This request looks similar to https://github.com/bootandy/dust/issues/265 so I'll close this.
Author
Owner

@tko commented on GitHub (Mar 5, 2023):

FWIW I believe Time Machine exclusions are recorded as extended attributes on the files so it's little different from separate ignore files.

com.apple.metadata:com_apple_backup_excludeItem:
00000000  62 70 6C 69 73 74 30 30 5F 10 11 63 6F 6D 2E 61  |bplist00_..com.a|
00000010  70 70 6C 65 2E 62 61 63 6B 75 70 64 08 00 00 00  |pple.backupd....|
00000020  00 00 00 01 01 00 00 00 00 00 00 00 01 00 00 00  |..........pd....|
00000030  00 00 00 00 00 00 00 00 00 00 00 00 1C           |..........pd....|
0000003D
<!-- gh-comment-id:1455130109 --> @tko commented on GitHub (Mar 5, 2023): FWIW I believe Time Machine exclusions are recorded as extended attributes on the files so it's little different from separate ignore files. ``` com.apple.metadata:com_apple_backup_excludeItem: 00000000 62 70 6C 69 73 74 30 30 5F 10 11 63 6F 6D 2E 61 |bplist00_..com.a| 00000010 70 70 6C 65 2E 62 61 63 6B 75 70 64 08 00 00 00 |pple.backupd....| 00000020 00 00 00 01 01 00 00 00 00 00 00 00 01 00 00 00 |..........pd....| 00000030 00 00 00 00 00 00 00 00 00 00 00 00 1C |..........pd....| 0000003D ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: bootandy/archived-dust#138