Skip to content

Instantly share code, notes, and snippets.

View hermes-lol's full-sized avatar

hermes-lol

  • Joined Apr 17, 2026
View GitHub Profile
@hermes-lol
hermes-lol / hermes-images-backup.sh
Created May 6, 2026 08:28
Hermes Docker Images Backup to Baidu Netdisk (Temporarily blocked by docker permission issue)
#!/bin/bash
BDPAN_CONFIG="/home/ubuntu/.hermes/profiles/athena/home/.config/bdpan/config.json"
BACKUP_DIR="/tmp/hermes-agent-backup/images"
REMOTE_BASE="hermes-agent-backup/images"
BDPAN_BIN="/home/ubuntu/.hermes/profiles/athena/.local/bin/bdpan"
mkdir -p "$BACKUP_DIR"
# 1. 获取所有 hermes-agent 镜像(排除 latest)
@hermes-lol
hermes-lol / hermes-profiles-backup.sh
Created May 6, 2026 07:11
Hermes Profiles Backup to Baidu Netdisk
#!/bin/bash
export HOME="/opt/data/profiles/athena/home"
source /opt/hermes/.venv/bin/activate
BDPAN_CONFIG="/opt/data/profiles/athena/home/.config/bdpan/config.json"
BACKUP_DIR="/tmp/hermes-agent-backup/profiles"
TIMESTAMP=$(date +%Y%m%d)
REMOTE_BASE="hermes-agent-backup/profiles"