boot-clj / boot-clj/boot

Stop temporary directories from being backed up by Time Machine on macOS

Open
#628 1 comment 0 reactions 0 assignees View on GitHub
Enhancement 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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.