Skip to content

Commit 64834be

Browse files
committed
feat(makefile): add 'make exclusions' target to list Time Machine exclusions
1 parent 478bdd4 commit 64834be

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.DEFAULT_GOAL := help
2-
.PHONY: help test lint check install uninstall
2+
.PHONY: help test lint check install uninstall exclusions
33

44

55
help: ## Outputs this help screen
@@ -18,3 +18,6 @@ install: ## Install Asimov and schedule via launchd
1818

1919
uninstall: ## Uninstall Asimov and remove launchd schedule
2020
@scripts/uninstall.sh
21+
22+
exclusions: ## List all paths excluded from Time Machine
23+
@sudo mdfind "com_apple_backup_excludeItem = 'com.apple.backupd'"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ Asimov is a thin wrapper around Apple's [`tmutil`](https://ss64.com/mac/tmutil.h
100100
List everything excluded from Time Machine:
101101

102102
```sh
103-
sudo mdfind "com_apple_backup_excludeItem = 'com.apple.backupd'"
103+
make exclusions
104104
```
105105

106106
Remove an exclusion added in error:

0 commit comments

Comments
 (0)