Skip to content

Exclude recreatable container data from Time Machine - #2412

Open
abdullahtas0 wants to merge 1 commit into
apple:mainfrom
abdullahtas0:exclude-recreatable-data-from-backup
Open

abdullahtas0 wants to merge 1 commit into
apple:mainfrom
abdullahtas0:exclude-recreatable-data-from-backup

Conversation

@abdullahtas0

Copy link
Copy Markdown

Important

All commits must be signed and verified. Pull requests containing unsigned or unverified commits cannot be built or merged. See the GitHub documentation for instructions.

For all but trivial fixes, make sure to first create a GitHub issue that concisely describes the bug or desired enhancement as justification for the change. Large PRs with no justifying issue will be closed.

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update

Motivation and Context

Fixes #2406.

Image snapshots and container root filesystems are large sparse files. Time Machine backs them up slowly, and that can trigger thinning of older backups. Both can be recreated by pulling the image or creating the container again.

snapshots/ and containers/ now receive the sticky backup exclusion when those directories are created, and again on later service starts so an existing install is covered the next time the system starts. Named volume data under volumes/ stays included.

Testing

  • Tested locally
  • Added/updated tests
  • Added/updated docs

swift test --filter testExcludeFromBackupMarksDirectoryAndLeavesSiblingAlone passed. The test sets the exclusion twice, writes a file inside the excluded directory, and checks that a sibling volumes/ directory is left alone.

Sparse image snapshots and container root filesystems make backups stall
and can trigger thinning. Volume data stays included.
@abdodarwish995-collab

Copy link
Copy Markdown

مهمتمت إضافة/تحديث المستندات

Fxxx

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Request]: Exclude image snapshots and container rootfs from Time Machine backups

2 participants