This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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" |