Orion vault — clean initial history
Knowledge vault (Orion/PARA) migrated from the pre-Orion 484vault on 2026-10-01. Deliberately orphaned: prior history contained a plaintext password and stays local-only on branch archive/pre-boilerplate-history. Secrets and live Hermes state are gitignored.
This commit is contained in:
commit
a66996ac10
233 changed files with 103810 additions and 0 deletions
|
|
@ -0,0 +1,34 @@
|
|||
#!/usr/bin/env bash
|
||||
# Mirror Hermes state into the Orion disaster-recovery location.
|
||||
# Prints nothing on success (cron: no notification); prints errors only.
|
||||
set -u
|
||||
VAULT="/home/avi/Orion"
|
||||
ERRS=""
|
||||
H="$VAULT/2. Areas/Home Personal/knowledge/hermes"
|
||||
|
||||
# 1. Skills -> 03-SKILLS/hermes-skills/
|
||||
rsync -a --delete ~/.hermes/skills/ "$VAULT/03-SKILLS/hermes-skills/" || ERRS="skills rsync failed"
|
||||
|
||||
# 1b. Rebuild the curated skills index from the mirrored SKILL.md frontmatter
|
||||
python3 ~/.hermes/scripts/skills-index.py >/dev/null 2>/tmp/skills-index.err || ERRS="${ERRS} skills-index failed: $(head -c200 /tmp/skills-index.err)"
|
||||
|
||||
# 2. Automation scripts + cron job definitions -> 04-SYSTEMS/hermes-automation/
|
||||
mkdir -p "$H/hermes-automation"
|
||||
rsync -a --delete ~/.hermes/scripts/ "$H/hermes-automation/scripts/" || ERRS="${ERRS} scripts-sync failed"
|
||||
cp ~/.hermes/cron/jobs.json "$H/hermes-automation/cron-jobs.json" 2>&1 || ERRS="${ERRS} cron-jobs-copy failed"
|
||||
|
||||
# 3. Legacy memories + config -> 04-SYSTEMS/hermes-memory/
|
||||
cp ~/.hermes/memories/MEMORY.md ~/.hermes/memories/USER.md "$H/hermes-memory/" 2>&1 || ERRS="${ERRS} memory-copy failed"
|
||||
cp ~/.hermes/config.yaml "$H/hermes-config.yaml" 2>&1 || ERRS="${ERRS} config-copy failed"
|
||||
|
||||
# 4. Mnemosyne DB (hot backup, WAL-safe) + last JSON export -> 04-SYSTEMS/hermes-memory/
|
||||
SQLITE=/home/avi/.local/android-sdk/platform-tools/sqlite3
|
||||
if [ -x "$SQLITE" ]; then
|
||||
"$SQLITE" "/home/avi/.hermes/mnemosyne/data/mnemosyne.db" ".backup '$H/hermes-memory/mnemosyne.db'" 2>&1 || ERRS="${ERRS} db-backup failed"
|
||||
fi
|
||||
|
||||
# 5. Timestamp for the agent pass to know what's new since last sync
|
||||
date -Iseconds > "$H/hermes-memory/.last-sync"
|
||||
|
||||
[ -n "$ERRS" ] && echo "VAULT SYNC ERRORS: $ERRS"
|
||||
exit 0
|
||||
Loading…
Add table
Add a link
Reference in a new issue