auto: sync OpenClaw config 2026-08-14 17:17

This commit is contained in:
2026-08-14 17:17:05 +08:00
parent d6da0db3d4
commit 7c4fe5a371
28 changed files with 2774 additions and 5 deletions
@@ -0,0 +1,27 @@
#!/bin/bash
# 表结构对齐脚本 - 准生产 → VPS
SOURCE_DB="${1:-}"
TARGET_DB="${2:-$SOURCE_DB}"
[ -z "$SOURCE_DB" ] && echo "用法:$0 <database>" && exit 1
# 连接信息
SOURCE_HOST="100.115.195.188"
SOURCE_PORT="50036"
SOURCE_USER="witsoftd"
TARGET_HOST="101.34.227.188"
TARGET_PORT="3306"
TARGET_USER="root"
echo "同步 $SOURCE_DB 到 VPS..."
# 获取表列表
TABLES=$(mysql -h "$SOURCE_HOST" -P "$SOURCE_PORT" -u "$SOURCE_USER" -p"${MYSQL_PWD_WIT}" -D "$SOURCE_DB" -N -e "SHOW TABLES;")
for TABLE in $TABLES; do
echo "处理:$TABLE"
# 对比并生成脚本...
done
echo "完成!"