Refactor backup config and Telegram notifications

This commit is contained in:
Codex
2026-03-16 17:30:55 +08:00
parent 51c8c37c69
commit d4b69f10f9
8 changed files with 293 additions and 254 deletions
+5 -2
View File
@@ -7,8 +7,11 @@ OBS_BACKUP_DIR="backup/${LABEL}" # 备份存放目录
TG_BOT_TOKEN="" # 留空表示不启用
TG_USER_ID="" # 留空表示不启用
# 备份目录,支持多个目录,用空格分隔
BACKUP_DIR="/root/data"
# 备份目录,使用多行格式;每行一个目录
BACKUP_DIRS=$(cat <<'EOF'
/root/data
EOF
)
# 日志目录
LOG_FILE="./backup.log"