Files
agent-claw/scripts/sync-workspace-to-s3.sh
2026-05-06 18:55:16 -05:00

20 lines
658 B
Bash
Executable File

#!/bin/bash
# Sync key workspace files from local OpenClaw workspace to agent-claw S3 bucket.
# Run this whenever MEMORY.md, SOUL.md, USER.md, or TOOLS.md are updated locally.
# Called by: Nestle heartbeat, or manually after memory updates.
BUCKET="agent-claw-workspace-495395224548"
WORKSPACE="/Users/daniel/.openclaw/workspace"
PROFILE="ai1"
REGION="us-east-1"
FILES=(MEMORY.md SOUL.md USER.md AGENTS.md IDENTITY.md TOOLS.md HEARTBEAT.md)
for f in "${FILES[@]}"; do
if [ -f "$WORKSPACE/$f" ]; then
aws s3 cp "$WORKSPACE/$f" "s3://$BUCKET/$f" \
--region "$REGION" --profile "$PROFILE" --quiet && echo "[sync] $f"
fi
done
echo "[sync] Done"