sync from WSL: full .openclaw directory sync
This commit is contained in:
@@ -12,7 +12,7 @@
|
|||||||
"operator.read",
|
"operator.read",
|
||||||
"operator.write"
|
"operator.write"
|
||||||
],
|
],
|
||||||
"updatedAtMs": 1784018876933
|
"updatedAtMs": 1784020866140
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Executable
+22
@@ -0,0 +1,22 @@
|
|||||||
|
#!/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 "=== 同步完成 ==="
|
||||||
Reference in New Issue
Block a user