Files
openclaw-config/scripts/sync-to-314.sh
T

22 lines
507 B
Bash
Executable File

#!/bin/bash
# 同步本机 .openclaw/ 到 3.14 主机
# 以本机(WSL)为准,3.14 只做接收
set -e
SRC="/home/yangxuan/.openclaw/"
DST="yangxuan@192.168.3.14:/home/yangxuan/.openclaw/"
echo "=== 同步 .openclaw/ 到 3.14 ==="
# 用 rsync --delete 确保 3.14 和本机完全一致
rsync -avz --delete \
--exclude='.git/' \
--exclude='sessions/' \
--exclude='logs/' \
--exclude='sandboxes/' \
--exclude='*.bak*' \
--exclude='cache/' \
"$SRC" "$DST"
echo ""
echo "=== 同步完成 ==="