obsidian-conversation-backupAutomatic conversation backup system for Obsidian with incremental snapshots, hourly breakdowns, and formatted chat-style markdown. Use when setting up conversation archival, preventing data loss from /new resets, or organizing chat history in Obsidian vault with proper formatting (colored callouts, timestamps, multi-paragraph support).
Install via ClawdBot CLI:
clawdbot install Laserducktales/obsidian-conversation-backupAutomatically backs up Clawdbot conversations to Obsidian with beautiful chat-style formatting. Prevents data loss from /new resets with hourly incremental snapshots.
# Extract the skill (if downloaded as .skill file)
unzip obsidian-conversation-backup.skill
cd obsidian-conversation-backup
# Run installer (interactive)
chmod +x install.sh
./install.sh
The installer will ask for:
Or manual setup:
config.example to configconfig with your pathschmod +x scripts/*.shAdd to crontab for hourly backups:
crontab -e
# Add this line (runs every hour at :00)
0 * * * * /path/to/obsidian-conversation-backup/scripts/monitor_and_save.sh
Edit scripts/format_message_v2.jq to change:
[!quote] for user, [!check] for assistant)Once configured in cron, the system runs automatically:
Every hour:
YYYY-MM-DD-HHmm-incremental.mdExample output:
2026-01-20-1500-incremental.md (messages from last save to now)
2026-01-20-1600-incremental.md (new messages since 15:00)
2026-01-20-1700-incremental.md (new messages since 16:00)
Protection: Max conversation loss = 1 hour
Save complete conversation anytime:
scripts/save_full_snapshot.sh [topic-name]
Examples:
scripts/save_full_snapshot.sh important-decisions
scripts/save_full_snapshot.sh bug-fix-discussion
scripts/save_full_snapshot.sh # uses "full-conversation" as default
Create organized breakdown by clock hour:
scripts/create_hourly_snapshots.sh YYYY-MM-DD
Example:
scripts/create_hourly_snapshots.sh 2026-01-20
Output:
2026-01-20-1500-hourly.md (15:00-15:59 messages)
2026-01-20-1600-hourly.md (16:00-16:59 messages)
2026-01-20-1700-hourly.md (17:00-17:59 messages)
Use case: End-of-day organization for easy reference
Messages appear as colored Obsidian callouts:
User messages (blue [!quote] callout):
> [!quote] ๐ User ยท 15:30
> This is my message
Assistant messages (green [!check] callout):
> [!check] ๐ฆ Zoidbot ยท 15:31
> This is the response
Features:
for paragraph breaks)> )The monitor_and_save.sh script also tracks token usage:
Warnings via Telegram:
Implementation:
# Sends warning only when crossing threshold (one-time)
# No repeated warnings
# Resets when back under 800k
scripts/
โโโ monitor_and_save.sh # Hourly incremental backup + token monitoring
โโโ save_full_snapshot.sh # On-demand full conversation save
โโโ create_hourly_snapshots.sh # Organize by clock hour
โโโ format_message_v2.jq # Chat formatting logic
The system uses hidden files to track state:
/root/clawd/.last_save_line_count # For token monitoring
/root/clawd/.last_snapshot_timestamp # For incremental saves
/root/clawd/.token_warning_sent # For warning deduplication
Note: Do not delete these files or incremental backups may duplicate content
Default: /root/.clawdbot/agents/main/sessions/*.jsonl
If your session files are elsewhere, update the SESSION_FILE path in each script.
crontab -lchmod +x scripts/*.shformat_message_v2.jq has the gsub("\n\n"; "
") line> prefixjq --version
rm /root/clawd/.last_snapshot_timestamp
format_message_v2.jq to filter empty messagesif ($text_content | length) > 0 conditionapt-get install jq)Edit crontab:
# Every 2 hours
0 */2 * * * /path/to/monitor_and_save.sh
# Every 30 minutes
*/30 * * * * /path/to/monitor_and_save.sh
# Specific times only (9am, 12pm, 6pm, 9pm)
0 9,12,18,21 * * * /path/to/monitor_and_save.sh
Edit monitor_and_save.sh:
# Change from 10 to 5 messages minimum
if [[ $new_lines -lt 5 ]]; then
Obsidian callout types:
[!quote] - Blue[!check] - Green[!note] - Cyan[!tip] - Purple[!warning] - Orange[!danger] - RedEdit monitor_and_save.sh to change warning text or add custom notifications.
.last_snapshot_timestamp in vault backupsDaily routine:
scripts/create_hourly_snapshots.sh 2026-01-20Before /new reset:
scripts/save_full_snapshot.sh before-reset/new safely - conversation is backed upThis skill works with:
Created by the Clawdbot community for reliable conversation backup and beautiful Obsidian formatting.
Generated Mar 1, 2026
A customer support team uses this skill to automatically archive all support conversations with clients into Obsidian. This creates a searchable knowledge base of past issues and solutions, helping agents quickly reference similar cases and improve response consistency.
A law firm employs this skill to back up AI-assisted legal consultations, ensuring all client advice and discussions are preserved in a secure, formatted manner. This aids in compliance, record-keeping, and reviewing case strategies without data loss from session resets.
An online tutoring platform integrates this skill to save all student-tutor AI conversations hourly. This allows tutors to track progress, review past lessons, and organize materials by session time, enhancing personalized learning and accountability.
A software development team uses this skill to archive AI discussions about bug fixes and code reviews into Obsidian. The incremental snapshots help document problem-solving steps, making it easy to reference past decisions and maintain project history.
A healthcare provider utilizes this skill to back up AI conversations with patients about symptoms or advice, formatted with timestamps for accurate logging. This supports compliance with medical record-keeping standards and ensures no critical information is lost.
Offer this skill as part of a subscription service for AI conversation management, providing regular updates, cloud storage integration, and premium support. Revenue is generated through monthly or annual fees from businesses needing reliable archival solutions.
Provide a free version with basic backup features and charge for advanced options like enhanced formatting, multi-vault support, or automated analytics. This attracts individual users while monetizing enterprises with higher needs.
Sell consulting services to help organizations integrate and customize this skill for their specific workflows, such as tailored formatting or integration with other tools. Revenue comes from project-based fees and ongoing maintenance contracts.
๐ฌ Integration Tip
Ensure jq and cron are installed on the system, and test the scripts manually before setting up automatic backups to avoid configuration errors.
Work with Obsidian vaults (plain Markdown notes) and automate via obsidian-cli.
Create, search, and manage Bear notes via grizzly CLI.
Track water and sleep with JSON file storage
Notion API for creating and managing pages, databases, and blocks.
Smart ClawdBot documentation access with local search index, cached snippets, and on-demand fetch. Token-efficient and freshness-aware.
Work with Obsidian vaults as a knowledge base. Features: fuzzy/phonetic search across all notes, auto-folder detection for new notes, create/read/edit notes with frontmatter, manage tags and wikilinks. Use when: querying knowledge base, saving notes/documents, editing existing notes by user instructions.