Add workspace config: docker build files, agent identity, user config, gitignore
This commit is contained in:
21
docker/bin/git-backup.sh
Normal file
21
docker/bin/git-backup.sh
Normal 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
|
||||
Reference in New Issue
Block a user