#!/bin/bash # InSono Backup Script - Creates update.zip with all source code # Run: bash make_backup.sh TIMESTAMP=$(date +"%Y%m%d_%H%M%S") OUTPUT="update.zip" rm -f "$OUTPUT" zip -r "$OUTPUT" \ main.py \ config.py \ .env.example \ .gitignore \ replit.md \ static/ \ models/ \ utils/ \ medsam2_pkg/ \ client/ \ server/ \ shared/ \ package.json \ tsconfig.json \ vite.config.ts \ tailwind.config.ts \ drizzle.config.ts \ components.json \ -x "**/__pycache__/*" "**/*.pyc" \ 2>/dev/null SIZE=$(du -h "$OUTPUT" | cut -f1) echo "" echo "===================================" echo " Backup created: $OUTPUT" echo " Size: $SIZE" echo " Time: $(date)" echo "===================================" echo "" echo "Download 'update.zip' from the Files panel."