This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # ============================================================================ | |
| # cleanup-r7-all.sh - Limpeza FULL apos tentativas r7 (v1 + v2 + restos) | |
| # ---------------------------------------------------------------------------- | |
| # Disco esta em 99% no servidor 150.150.251.112. Cobre TODOS os leftover | |
| # possiveis das tentativas anteriores e libera espaco em camadas, parando | |
| # assim que o disco baixar pra <82% (limite do v3). | |
| # | |
| # Camadas de limpeza (ordem de impacto vs risco): | |
| # 1. DROP de TODAS shadow/backup tables 'mqtt.sensordatarecord_backup_r7_*' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # ============================================================================ | |
| # deploy-r7-etapa1-v3.sh - Deploy r7 + backfill 01/04-hoje (Etapa 1, v3) | |
| # ---------------------------------------------------------------------------- | |
| # Segunda rodada do r7. Diferencas vs v2: | |
| # - DISCOVERY de sensores via SQL (audita TODOS sensores ativos no DB) | |
| # - Filtro automatico pros 8 calibrados em SENSOR_KWH_DIVISOR (EgxCsvParser:106) | |
| # - Reporting explicito de quem foi PULADO (e por que) — entrada pra rodada 3 | |
| # - Idempotente: detecta se ja esta no r7 e pula build/update | |
| # |