roadmap
roadmap copied to clipboard
macOS: exclude more directories from Time Machine backup
Tell us about your request
Currently, runtime data is included in Time Machine backups.
$ tree ~/.docker
...
└── run
├── docker-cli-api.sock
├── docker.sock
├── otlp-public.grpc.sock
└── otlp.grpc.sock
$ tmutil isexcluded .docker/run
[Included] /System/Volumes/Data/Users/dev/.docker/run
I do not know what is contained in all the other sub-directories of ~/.docker, maybe there might be more temporary/cache/runtime data to exclude as well.
Which service(s) is this request for?
Docker Desktop for macOS
Tell us about the problem you're trying to solve. What are you trying to do, and why is it hard?
Runtime data should not be stored in Time Machine backups.
Are you currently working around the issue?
$ xattr -w com.apple.metadata:com_apple_backup_excludeItem com.apple.backupd ~/.docker/run
$ tmutil isexcluded .docker/run
[Excluded] /System/Volumes/Data/Users/dev/.docker/run
after installing Docker Desktop for Mac.