#!/bin/bash
TIMESTAMP=$(date +%Y%m%d_%H%M)
mkdir -p backups
echo "Archiving existing /pwa to backups/pwa_legacy_${TIMESTAMP}.zip"
zip -r backups/pwa_legacy_${TIMESTAMP}.zip pwa || true
echo "Copying new PWA into place (this script assumes you run from project root)"
rsync -av --delete AtulyaSolar_PWA_PROD/pwa/ pwa/
echo "Done. Please verify and then remove backups as needed."
