macOS TCC Silently Blocked Backups for 3 Weeks, Developer Finds Automated Fix
A developer discovered that a launchd-scheduled backup job had silently failed for three weeks on macOS, copying zero files due to a Transparency, Consent, and Control (TCC) permission block on the ~/Documents directory. The issue arose while attempting to automate backups of Claude Code configuration files stored under ~/.claude/, which accumulate dozens of frequently changing files including settings, hooks, and agent definitions. Manual backups proved unreliable, and committing the entire ~/.claude/ directory to Git was impractical due to cache and telemetry data inflating repository size to several gigabytes. The developer resolved the problem by using rsync to copy only essential config files to a directory within ~/.claude/ itself — bypassing the TCC restriction — and placing that snapshot directory under Git version control. The automated launchd job now runs every Sunday, committing any detected changes in conventional commit format and providing a reliable rollback history without requiring manual intervention.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in