Files
echo-core/tools/backup_config.sh
MoltBot Service 5928077646 cleanup: remove clawd/openclaw references, fix permissions, add architecture docs
- Replace all ~/clawd and ~/.clawdbot paths with ~/echo-core equivalents
  in tools (git_commit, ralph_prd_generator, backup_config, lead-gen)
- Update personality files: TOOLS.md repo/paths, AGENTS.md security audit cmd
- Migrate HANDOFF.md architectural decisions to docs/architecture.md
- Tighten credentials/ dir to 700, add to .gitignore
- Add .claude/ and *.pid to .gitignore
- Various adapter, router, and session improvements from prior work

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-14 21:44:13 +00:00

21 lines
498 B
Bash
Executable File

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