obsidian-backup

obsidian-backup is a skill for Claude Code from tonydzi/second-brain-starter-kit. It costs 81 tokens per session (2,198 once invoked), scanned A, original, MIT.

A backup and recovery procedure for an Obsidian vault, including extra copies, off-site storage, scheduled backups, and steps for restoring the vault or moving it to a new machine.

In plain words
What is it for?
Use it to create or verify backups, preserve original source files, check scheduled jobs, restore data, and migrate the vault.
Why use it?
It protects notes and original imported files from hardware failure, accidental deletion, or a broken backup.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the second-brain-skills plugin — 258 skills, 3 agents, 1 plugin shipped together

Good fit Use it to create or verify backups, preserve original source files, check scheduled jobs, restore data, and migrate the vault.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tonydzi/second-brain-starter-kit/obsidian-backup
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add tonydzi/second-brain-starter-kit --skill obsidian-backup
Clone the repo
git clone --depth 1 https://github.com/tonydzi/second-brain-starter-kit

Made for: Claude Code.

Or install second-brain-skills, the plugin that ships this one along with the rest of its 258 skills, 3 agents, 1 plugin.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for obsidian-backup

README.md
[![agentmods](https://agentmods.dev/badge/skills/tonydzi/second-brain-starter-kit/obsidian-backup/github.svg)](https://agentmods.dev/skills/tonydzi/second-brain-starter-kit/obsidian-backup)
Your own site
<a href="https://agentmods.dev/skills/tonydzi/second-brain-starter-kit/obsidian-backup"><img src="https://agentmods.dev/badge/skills/tonydzi/second-brain-starter-kit/obsidian-backup/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for obsidian-backup

Your own site · 80×15
<a href="https://agentmods.dev/skills/tonydzi/second-brain-starter-kit/obsidian-backup"><img src="https://agentmods.dev/badge/skills/tonydzi/second-brain-starter-kit/obsidian-backup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 81 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,198 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00081 $0.02198
Opus 5.5 $0.00032 $0.00879
Sonnet 5.5 $0.00016 $0.00440
Haiku 4.5 $0.00008 $0.00220

Measured 1mo ago against content hash 039f8fa3c0e4, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

obsidian-backup scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/obsidian-backup/SKILL.md · 124 lines

How it starts

The opening of the file, as written. The whole thing — 124 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Obsidian backup & restore (data-safety runbook)

🧒 When reporting to Anton: always end with a child-simple "In plain words" recap in his language (plain words, no jargon) — his standing request. See memory eli5-always.

This skill is the operational runbook for Anton's vault data-safety system. The rules (always preserve originals; always back up offsite to Google Drive) live in memory — preserve-originals-rule, vault-offsite-backup — and in the import skills (obsidian-ingest Rule 0, telegram-reimport Step 0). Don't re-derive or duplicate them here. This file says what to run, where things are, and how to recover.

The system at a glance — 4 layers

  1. Originals (Rule 0). Every import's raw source is copied verbatim to $OBSIDIAN_ROOT/_originals/<key>\<date>__<name>\ (sha256 manifest), never deleted. Script: archive_original.py.
  2. 3-2-1 backup. Vault → one git bundle (full history) + _originals copy-only → to Google Drive (offsite/cloud) and <LOCAL_BACKUP_DIR> (separate disk). Script: backup_to_drive.py.
  3. Nightly automation. Windows Task Scheduler job Obsidian Backup to Drive runs the backup daily 03:00 (runs even when Claude is closed).
  4. Weekly watchdog. Claude routine obsidian-backup-healthcheck (Mon ~10:00) runs backup_healthcheck.py and Telegrams Anton — heartbeat if fine, alert (and may self-heal) if broken.

Where everything is (this machine)

Thing Path
Vault (git repo) $OBSIDIAN_VAULT
Originals (permanent) $OBSIDIAN_ROOT/_originals/ (+ README.txt)
Scripts $IMPORTS_ROOT/{archive_original,backup_to_drive,backup_healthcheck}.py (+ backup_to_drive.cmd, log backup_to_drive.log, verdicts in backup_health\)
Offsite copy (cloud) <GDRIVE_ROOT>\Obsidian-Backup\ — Google account [email protected] (G: shortcut → this folder; Google uploads to cloud)
Local copy (2nd disk) <LOCAL_BACKUP_DIR>\
Each copy holds vault\Owner-Knowledge-<date>.bundle (last 14 kept) · _originals\ · MIGRATE.md · last-backup.txt

Read the full file on GitHub · 124 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed 039f8fa3c0e4
  2. 1mo ago Changed · -1 lines 839a2e3df3e8
  3. 1mo ago Changed · +11 lines · +20 tokens per session 6443de9be14e
  4. 1mo ago Changed 74b3e2152a46
  5. 2mo ago Changed 9324eb885f7b
  6. 2mo ago Changed · -13 lines · -20 tokens per session a623b469ec5a
  7. 2mo ago First seen · 127 lines · 81 tokens per session scan A d5607f0a42f3

Subscribe to this mod's changes

obsidian-backup is a skill published in the GitHub repository tonydzi/second-brain-starter-kit (16 stars, last pushed 3d ago), licensed MIT. It adds 81 tokens to every session and 2,198 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-09.

Related

obsidian-backup compared with skills from other repositories

obsidian-backup next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
obsidian-backuptonydzi/second-brain-starter-kitSkill163d agoMITA81Claude Code
wiki-modeAgriciDaniel/claude-obsidianSkill17k1mo agoMITA83Claude Code
wikiAgriciDaniel/claude-obsidianSkill17k1mo agoMITA84Claude Code
defuddleAgriciDaniel/claude-obsidianSkill17k1mo agoMITA61Claude Code
wiki-foldAgriciDaniel/claude-obsidianSkill17k1mo agoMITA76Claude Code
superbrain-distillm3talux/superbrainSkill433mo agoMITA36Claude Code
compliance-checkAiAi-Mastermind/aiai-mastermind-tools-and-skillsSkill21mo agoMITA74Claude Code, Codex