macos-backup-overwrite-only
Skill1 starsChanged 5 months agoMITView on GitHub
Use when setting up daily macOS backup that overwrites rather than accumulates.
- Deletes or force-pushes
In this repository13 other files it gives its agents.
- fix-brew-node-dylib-mismatchSkill
- github-demo-recordingSkill
- github-exposure-standardSkill
- github-project-discovery-hybridSkill
- install-tool-with-verificationSkill
- ios-app-build-automationSkill
- macos-deploy-python-tool-from-githubSkill
- macos-ram-swap-analysisSkill
- open-notebook-docker-ollama-setupSkill
- reddit-post-launch-workflowSkill
- self-regulation-brake-systemSkill
- social-media-account-registrationSkill
- webhook-subscriptionsSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 104
Check target folder and log.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
macOS Daily Backup — Overwrite Mode (No Accumulation)
Uses macOS native launchd scheduling to daily backup ~/.hermes and directories to a fixed location, overwriting each time without keeping history.
Architecture
~/Library/LaunchAgents/com.hermes.dailybackup.plist ← launchd schedule
~/.hermes/scripts/backup.sh ← backup script
~/Backups/Hermes-latest/ ← target location (overwrite each time)launchd plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.hermes.dailybackup</string>
<key>ProgramArguments</key>
<array>
<string>/path/to/backup.sh</string>
</array>
<key>StartCalendarInterval</key>
<dict>
<key>Hour</key>
<integer>0</integer>
<key>Minute</key>
<integer>0</integer>
</dict>
<key>RunAtLoad</key>
<false/>
<key>StandardOutPath</key>
<string>/path/to/log.log</string>
<key>StandardErrorPath</key>
<string>/path/to/log.log</string>
<key>EnvironmentVariables</key>
<dict>
<key>PATH</key>
<string>/usr/local/bin:/usr/bin:/bin:/opt/homebrew/bin</string>
</dict>
</dict>
</plist>Backup Script Template
#!/bin/bash
# Daily backup, overwrite a fixed location each time
BACKUP_ROOT="/path/to/backup_root"
BACKUP_DIR="${BACKUP_ROOT}/BackupName-latest"
LOG_FILE="${BACKUP_ROOT}/backup.log"
echo "[$(date '+%Y-%m-%d %H:%M:%S')] === Starting Backup ===" >> "$LOG_FILE"
# 1. Clear old backup (overwrite each time)
if [ -d "$BACKUP_DIR" ]; then
rm -rf "$BACKUP_DIR"
fi
# 2. Create directory structure
mkdir -p "${BACKUP_DIR}/subdir"
# 3. rsync backup (exclude large directories)
rsync -a --delete \
--exclude='venv/' \
--exclude='__pycache__/' \
--exclude='node_modules/' \
--exclude='.git/' \
/source/path/ \
"${BACKUP_DIR}/subdir/"
# 4. Log size
DU_SIZE=$(du -sh "$BACKUP_DIR" 2>/dev/null | cut -f1)
echo "[$(date '+%Y-%m-%d %H:%M:%S')] ✅ Backup complete — Size: ${DU_SIZE}" >> "$LOG_FILE"
echo "---" >> "$LOG_FILE"Load / Reload launchd
launchctl unload ~/Library/LaunchAgents/com.hermes.dailybackup.plist 2>/dev/null
launchctl load ~/Library/LaunchAgents/com.hermes.dailybackup.plistTesting
bash /path/to/backup.shCheck target folder and log.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

