Skip to content

macOS: exclude more directories from Time Machine backup #586

@sdavids

Description

@sdavids

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.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingdocker_desktopImprovements or additions to Docker Desktop

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions