stage-1: project bootstrap

Structure, config loader, personality/tools/memory from clawd, venv, 22 tests passing.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
MoltBot Service
2026-02-13 10:20:55 +00:00
commit f2973aa76f
374 changed files with 59557 additions and 0 deletions

20
tools/backup_config.sh Executable file
View File

@@ -0,0 +1,20 @@
#!/bin/bash
# Backup config cu retenție: 1 zilnic, 1 săptămânal, 1 lunar
BACKUP_DIR="/home/moltbot/backups"
CONFIG="$HOME/.clawdbot/clawdbot.json"
# Backup zilnic (suprascrie)
cp "$CONFIG" "$BACKUP_DIR/clawdbot-daily.json"
# Backup săptămânal (duminică)
if [ "$(date +%u)" -eq 7 ]; then
cp "$CONFIG" "$BACKUP_DIR/clawdbot-weekly.json"
fi
# Backup lunar (ziua 1)
if [ "$(date +%d)" -eq 01 ]; then
cp "$CONFIG" "$BACKUP_DIR/clawdbot-monthly.json"
fi
echo "Backup done: $(date)"