From 4fe14369c41b4a0aab7fb41577a9d83c43c35f60 Mon Sep 17 00:00:00 2001 From: yangxuan Date: Tue, 14 Jul 2026 18:00:05 +0800 Subject: [PATCH] auto backup 2026-07-14 18:00 --- scripts/sync-to-314.sh | 29 +++++++++++++++++++++++------ 1 file changed, 23 insertions(+), 6 deletions(-) diff --git a/scripts/sync-to-314.sh b/scripts/sync-to-314.sh index 361826c..c9ab638 100755 --- a/scripts/sync-to-314.sh +++ b/scripts/sync-to-314.sh @@ -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 "=== 同步完成 ===" \ No newline at end of file +echo "=== 同步完成 ===" +echo "已排除(运行时数据,各自保留):" +echo " sessions/ state/ memory/ media/ logs/ + cache/ sandboxes/ sandbox/ credentials/ devices/ + openclaw-weixin/ cron/runs/ subagents/ + extensions/ delivery-queue/ archived/ agents-archived/"