restore hermes

#1
by Leon4gr45 - opened

If you want to verify the restore script works:

# Create a test directory
mkdir -p /tmp/test-hermes-restore
cd /tmp/test-hermes-restore

# Run the restore script
HERMES_BASE=/tmp/test-hermes HERMES_BACKUP_REPO=https://github.com/Greene-ctrl/leon-hermes.git \
curl -fsSL https://raw.githubusercontent.com/Greene-ctrl/leon-hermes/main/restore.sh | bash

# Verify
ls -1 /tmp/test-hermes/skills | wc -l
cat /tmp/test-hermes/config.yaml | head -20

user@r-lekmikdok-webvoyagerresults-hermes-dj6tp9bi-3cc66-dhnnc:/app$ export HERMES_GITHUB_TOKEN=,,,
user@r-lekmikdok-webvoyagerresults-hermes-dj6tp9bi-3cc66-dhnnc:
/app$ curl -sL -H "Authorization: token $HERMES_GITHUB_TOKEN" "https://raw.githubusercontent.com/Greene-ctrl/leon-hermes/main/restore.sh" -o /tmp/restore.sh
user@r-lekmikdok-webvoyagerresults-hermes-dj6tp9bi-3cc66-dhnnc:/app$ bash /tmp/restore.sh
tee: /home/user/.hermes/backup/restore.log: No such file or directory
[2026-04-06 23:02:49] ==========================================
user@r-lekmikdok-webvoyagerresults-hermes-dj6tp9bi-3cc66-dhnnc:
/app$
user@r-lekmikdok-webvoyagerresults-hermes-dj6tp9bi-3cc66-dhnnc:/app$ # Then start Hermes:
user@r-lekmikdok-webvoyagerresults-hermes-dj6tp9bi-3cc66-dhnnc:
/app$ hermes
bash: hermes: command not found
user@r-lekmikdok-webvoyagerresults-hermes-dj6tp9bi-3cc66-dhnnc:/app$
user@r-lekmikdok-webvoyagerresults-hermes-dj6tp9bi-3cc66-dhnnc:
/app$ bash /tmp/restore.sh
tee: /home/user/.hermes/backup/restore.log: No such file or directory
[2026-04-06 23:03:16] ==========================================
user@r-lekmikdok-webvoyagerresults-hermes-dj6tp9bi-3cc66-dhnnc:/app$ tee: /home/user/.hermes/backup/restore.log: No such file or directory
bash: tee:: command not found
user@r-lekmikdok-webvoyagerresults-hermes-dj6tp9bi-3cc66-dhnnc:
/app$ /tmp/restore.sh
bash: /tmp/restore.sh: Permission denied
user@r-lekmikdok-webvoyagerresults-hermes-dj6tp9bi-3cc66-dhnnc:~/app$

[2026-04-06 23:06:20] ✓ Linuxbrew installed successfully
[2026-04-06 23:06:20] Installing Firm CLI...
ERROR: Could not find a version that satisfies the requirement firm-workspace (from versions: none)
ERROR: No matching distribution found for firm-workspace
user@r-lekmikdok-webvoyagerresults-hermes-dj6tp9bi-3cc66-dhnnc:/app$ hermes
bash: hermes: command not found
user@r-lekmikdok-webvoyagerresults-hermes-dj6tp9bi-3cc66-dhnnc:
/app$

Install Firm via Homebrew

brew tap 42futures/firm
brew install firm

Verify Firm is installed

firm --version

Now continue the restore script (it will skip already-installed components)

bash /tmp/restore.sh

2. Fresh Installation Steps

If doing a completely fresh install on this system:

# Clean up existing Hermes (optional - only if you want a full reset)
# WARNING: This will delete your current setup
^[[24;1R# rm -rf ~/.hermes/ ~/.skills_prompt_snapshot.json

# Run the restoration script
cd ~
curl -fsSL https://raw.githubusercontent.com/Greene-ctrl/leon-hermes/main/restore.sh -o restore.sh
chmod +x restore.sh

# Or if you prefer manual:
bash ~/.hermes/backup/startup.sh

3. Verify Restoration

# Check config files
ls -la ~/.hermes/config.yaml ~/.hermes/SOUL.md ~/.hermes/auth.json

# Check skills
ls ~/.hermes/skills | wc -l

# Test Firm workspace
cd /home/user/app/aux
firm build

# Check GitHub connection
cd ~/.hermes/backup
git status
^[[24;1R```

**4. Re-authenticate Services** (if needed)

Some credentials may need re-authentication:
- Google OAuth tokens
- GitHub CLI authentication

curl -fsSL https://raw.githubusercontent.com/Greene-ctrl/leon-hermes/main/restore.sh -o restore.sh
curl: (22) The requested URL returned error: 404

use git cli gh with my PAT which i export to the env

Sign up or log in to comment