Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/JansenAnalytics/claudexnpx agentmods add skills/jansenanalytics/claudex/backup-restoreWrote 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.
[](https://agentmods.dev/skills/jansenanalytics/claudex/backup-restore)<a href="https://agentmods.dev/skills/jansenanalytics/claudex/backup-restore"><img src="https://agentmods.dev/badge/skills/jansenanalytics/claudex/backup-restore/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.
<a href="https://agentmods.dev/skills/jansenanalytics/claudex/backup-restore"><img src="https://agentmods.dev/badge/skills/jansenanalytics/claudex/backup-restore.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00039 | $0.00503 |
| Opus 5.5 | $0.00016 | $0.00201 |
| Sonnet 5.5 | $0.00008 | $0.00101 |
| Haiku 4.5 | $0.00004 | $0.00050 |
Grade A, and why
backup-restore 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 3mo 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.
How it starts
The opening of the file, as written. The whole thing — 70 lines — stays where its author put it; the contents beside it link to each section on GitHub.
backup-restore
Automated backup strategies: database dumps, file snapshots, incremental backups, verification, disaster recovery. Use when: setting up backup schedules, creating database backups, restoring from backups, verifying backup integrity, or planning disaster recovery.
Workflows
Create a backup
bash scripts/backup.sh --type <pg|sqlite|files> --source <path-or-db> --dest <backup-dir>
Creates timestamped, compressed backups. Supports PostgreSQL, SQLite, and file directories.
Restore from backup
bash scripts/restore.sh --type <pg|sqlite|files> --backup <backup-file> --dest <target>
Restores from a backup archive. Prompts for confirmation before overwriting.
Verify backup integrity
bash scripts/verify-backup.sh <backup-file>
Checks checksums, tests archive integrity, and validates contents.
Clean up old backups (retention)
bash scripts/retention-cleanup.sh <backup-dir> [--keep-days 30] [--keep-count 10]
Removes old backups based on age or count, keeping minimum required.
Set up cron schedule
bash scripts/cron-setup.sh --schedule "0 2 * * *" --command "bash /path/to/backup.sh ..."
Adds a cron entry for automated backups.
Scripts
| Script | Purpose |
|---|---|
scripts/backup.sh |
Universal backup (pg/sqlite/files) |
scripts/restore.sh |
Restore from backup |
scripts/verify-backup.sh |
Verify backup integrity |
scripts/retention-cleanup.sh |
Clean old backups |
scripts/cron-setup.sh |
Set up cron schedule |
References
| File | Contents |
|---|---|
references/backup-strategies.md |
3-2-1 rule, patterns, restore testing |
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.
- 3mo ago First seen · 70 lines · 39 tokens per session scan A f40f773f8258
backup-restore is a skill published in the GitHub repository JansenAnalytics/claudex (5 stars, last pushed 5mo ago), licensed MIT. It adds 39 tokens to every session and 503 once invoked, about $0.0002 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-08-31.
backup-restore compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| backup-restoreJansenAnalytics/claudex | Skill | 5 | 5mo ago | MIT | A | 39 | Claude Code, Codex |
| cis-aws-database-2.8CyberStrikeus/CyberStrike | Skill | 3.8k | today | AGPL-3.0 | A | 20 | Claude Code, Codex |
| backupsericrisco/rsc-harness | Skill | 691 | 5d ago | MIT | A | 82 | Claude Code, Codex |
| cis-aws-foundations-3.2.4CyberStrikeus/CyberStrike | Skill | 3.8k | today | AGPL-3.0 | A | 26 | Claude Code, Codex |
| cis-aws-database-4.9CyberStrikeus/CyberStrike | Skill | 3.8k | today | AGPL-3.0 | A | 15 | Claude Code, Codex |
| cis-aws-database-11.7CyberStrikeus/CyberStrike | Skill | 3.8k | today | AGPL-3.0 | A | 16 | Claude Code, Codex |
| cis-aws-database-5.13CyberStrikeus/CyberStrike | Skill | 3.8k | today | AGPL-3.0 | A | 18 | Claude Code, Codex |