Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 4fe14369c4 |
+23
-6
@@ -1,22 +1,39 @@
|
||||
#!/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 ==="
|
||||
echo "=== 同步 .openclaw/ 配置到 3.14 ==="
|
||||
|
||||
# 用 rsync --delete 确保 3.14 和本机完全一致
|
||||
rsync -avz --delete \
|
||||
--exclude='.git/' \
|
||||
--exclude='sessions/' \
|
||||
--exclude='logs/' \
|
||||
--exclude='sandboxes/' \
|
||||
--exclude='*.bak*' \
|
||||
--exclude='cache/' \
|
||||
--exclude='*.bak*' \
|
||||
--exclude='state/' \
|
||||
--exclude='memory/' \
|
||||
--exclude='media/' \
|
||||
--exclude='sandboxes/' \
|
||||
--exclude='sandbox/' \
|
||||
--exclude='openclaw-weixin/' \
|
||||
--exclude='credentials/' \
|
||||
--exclude='cron/runs/' \
|
||||
--exclude='devices/' \
|
||||
--exclude='subagents/' \
|
||||
--exclude='extensions/' \
|
||||
--exclude='delivery-queue/' \
|
||||
--exclude='archived/' \
|
||||
--exclude='agents-archived/' \
|
||||
"$SRC" "$DST"
|
||||
|
||||
echo ""
|
||||
echo "=== 同步完成 ==="
|
||||
echo "=== 同步完成 ==="
|
||||
echo "已排除(运行时数据,各自保留):"
|
||||
echo " sessions/ state/ memory/ media/ logs/
|
||||
cache/ sandboxes/ sandbox/ credentials/ devices/
|
||||
openclaw-weixin/ cron/runs/ subagents/
|
||||
extensions/ delivery-queue/ archived/ agents-archived/"
|
||||
|
||||
Reference in New Issue
Block a user