#!/bin/bash echo "🔄 [Stage 1] Attempting to restore storage from Cloudflare R2..." python backup.py --restore echo "🚀 [Stage 2] Starting local Backup API (Flask) in the background..." python backup.py --serve & echo "⚡ [Stage 3] Starting ApexKit on port 7860..." exec ./apexkit --port 7860