Stop temporary directories from being backed up by Time Machine on macOS
- Dominant language
- Clojure
- Stars
- 1.7k
- Forks
- 178
- PR merge metrics
- No merged PRs in 30d
Description
I noticed recently that Backblaze and Time Machine were backing up Boot's temporary files. This is probably not necessary or desired by most users.
Apple provides an API [CSBackupSetItemExcluded](https://developer.apple.com/documentation/coreservices/1445043-csbackupsetitemexcluded?language=objc) to mark directories as excluded by Time Machine, and other Mac backup software respects the same markings. There is also a command line tool `tmutil` which lets you accomplish the same task with `tmutil addexclusion `.
You can check the backup status of a directory with the following command
```console
$ tmutil isexcluded ~/.boot/cache/tmp/
[Included] /Users/danielcompton/.boot/cache/tmp
```
Is this something Boot is interested in accepting a patch for?
Contributor guide
Assessment
This issue has not been assessed yet.