Add complete Crumbforest mission system
- Interactive mission selector with metadata-driven design - 5 educational missions (basics + advanced) - AI assistant roles (Deepbit, Bugsy, Schnippsi, Tobi) - SnakeCam gesture recognition system - Token tracking utilities - CLAUDE.md documentation - .gitignore for logs and secrets
This commit is contained in:
52
backup_zero.sh
Executable file
52
backup_zero.sh
Executable file
@@ -0,0 +1,52 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo "📦 Starte Backup des Crumbforest Zero Systems..."
|
||||
|
||||
# Zielname
|
||||
BACKUP_NAME="crumbforest_zero_backup_$(date +%Y%m%d_%H%M%S).zip"
|
||||
DEST_DIR="/home/zero"
|
||||
FULL_PATH="$DEST_DIR/$BACKUP_NAME"
|
||||
|
||||
# Verzeichnisse und Dateien sammeln
|
||||
INCLUDE_PATHS=(
|
||||
"/usr/local/bin/crumbmission"
|
||||
"/home/zero/crumbforest_backup"
|
||||
"/home/zero/.bits_logs"
|
||||
"/home/zero/.eule_logs"
|
||||
"/home/zero/.snake_logs"
|
||||
"/home/zero/.pepper_logs"
|
||||
"/home/zero/.bugsy_logs"
|
||||
"/home/zero/.deepbit_logs"
|
||||
"/home/zero/.dumbo_logs"
|
||||
"/home/zero/.funkfox_logs"
|
||||
"/home/zero/.schnecki_logs"
|
||||
"/home/zero/.schnippsi_logs"
|
||||
"/home/zero/.schraubaer_logs"
|
||||
"/home/zero/.stage_logs"
|
||||
"/home/zero/.taube_logs"
|
||||
"/home/zero/.templatus_logs"
|
||||
"/home/zero/.tobi_logs"
|
||||
"/home/zero/.missionstage_log"
|
||||
|
||||
)
|
||||
|
||||
# Existierende Pfade prüfen und nur diese einfügen
|
||||
EXISTING_PATHS=()
|
||||
for path in "${INCLUDE_PATHS[@]}"; do
|
||||
if [ -e "$path" ]; then
|
||||
echo "✅ Hinzufügen: $path"
|
||||
EXISTING_PATHS+=("$path")
|
||||
else
|
||||
echo "⚠️ Nicht gefunden (wird übersprungen): $path"
|
||||
fi
|
||||
done
|
||||
|
||||
# Archiv erstellen
|
||||
cd /
|
||||
zip -r "$FULL_PATH" "${EXISTING_PATHS[@]}" > /dev/null
|
||||
|
||||
if [ $? -eq 0 ]; then
|
||||
echo "🎉 Backup erfolgreich erstellt: $FULL_PATH"
|
||||
else
|
||||
echo "❌ Fehler beim Erstellen des Backups."
|
||||
fi
|
||||
Reference in New Issue
Block a user