data-persistence

Export SQLite session data to JSON with incremental remote backups.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/milo0914/hermes-skills-backup --skill data-persistence-milo0914
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: data-persistence
Source: https://github.com/milo0914/hermes-skills-backup/tree/main/devops/data-persistence
Command: npx skills add https://github.com/milo0914/hermes-skills-backup --skill data-persistence-milo0914

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires sqlite3, hashlib, fcntl, huggingface_hub, git, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This skill addresses the critical risk of data loss in Hermes Agent by implementing automated, incremental backup and synchronization strategies for session data, ensuring your conversations and work products survive system restarts or container rebuilds.

Core Features & Use Cases

  • Incremental Backup: Efficiently syncs SQLite session data to portable JSON files using hash-based change detection to minimize disk I/O and API usage.
  • Remote Synchronization: Safely pushes backups to remote storage like HuggingFace with built-in rate limiting to respect API constraints.
  • Self-Healing Infrastructure: Automatically restores missing cron wrappers and scripts after environment wipes, preventing bootstrapping deadlocks.

Quick Start

Use the data-persistence skill to run a manual backup of all current Hermes Agent sessions to the local JSON storage directory.

Frequently Asked Questions about data-persistence

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I backup SQLite session data to JSON for ephemeral containers?

You can backup SQLite session data by running incremental exports to portable JSON files using hash-based change detection, which minimizes disk I/O and ensures your session data survives container restarts or rebuilds.

Why does my cron-based backup fail after an environment wipe on HuggingFace Spaces?

Cron-based backups fail after environment wipes due to missing scripts, but self-healing infrastructure automatically restores missing cron wrappers and scripts to prevent bootstrapping deadlocks.

Can I synchronize SQLite backups to HuggingFace without hitting API rate limits?

Yes, you can synchronize SQLite backups to HuggingFace remote storage safely, as the process includes built-in rate limiting specifically designed to respect API constraints.

What is the best way to recover Hermes Agent sessions across different devices?

The best way to recover Hermes Agent sessions across devices is using remote synchronization to push incremental SQLite-to-JSON backups, enabling seamless cross-device sync and session recovery.

Do I need git to restore missing cron wrappers and scripts automatically?

Git is required as a dependency for the self-healing infrastructure that automatically restores missing cron wrappers and scripts after environment wipes, preventing bootstrapping deadlocks.

How does incremental backup detect changes to minimize API usage during synchronization?

Incremental backup detects changes using hash-based change detection during SQLite-to-JSON exports, ensuring only modified data is processed to minimize disk I/O and remote API usage.