Add workspace config: docker build files, agent identity, user config, gitignore

This commit is contained in:
Klaatu
2026-02-20 18:39:22 +00:00
parent fdbac8136d
commit 8d30148e77
16 changed files with 446 additions and 0 deletions

21
docker/bin/git-backup.sh Normal file
View File

@@ -0,0 +1,21 @@
#!/bin/bash
# git-backup.sh - Quick backup of workspace to git
# Run this before deploying new images
cd /home/node/.openclaw/workspace
echo "=== OpenClaw Workspace Backup ==="
echo "Status:"
git status --short
echo ""
echo "Adding changes..."
git add -A
if git diff --cached --quiet; then
echo "Nothing to commit"
else
echo "Committing..."
git commit -m "Backup: $(date -Iseconds)"
echo "Done. Commit hash: $(git rev-parse --short HEAD)"
fi