Commit graph

2 commits

Author SHA1 Message Date
Claude
9291393965
Prune short-lived upgrade backups after 2 weeks
Each upgrade already writes a SQL dump + webapp/WAR snapshot pair
under a shared timestamp for tactical rollback. Add automatic
pruning of pairs older than RETENTION_DAYS (14), run right after
manager-exec.sh upgrade succeeds so nothing is discarded if the
upgrade itself failed. Pruning works from the union of timestamps
across sql/webapp/logs so a partial pair (one artifact skipped via
-f/-w) is still cleaned up without erroring.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Tj4SF2BGFxgoRYrCAzNpDb
2026-09-30 18:20:04 +00:00
Claude
54bfeb73e7
Import existing manual deploy scripts as a starting point
These are the scripts currently run by hand on the old EC2 server to do a
full upgrade (safe storeall handshake, backups, explode WAR, run the
manager schema-migration tool, restart Tomcat). Committed as-is for now to
review and refactor from, except tomcat_ctl.sh, which is already rewritten
to control Tomcat via the new Docker container's supervisord (through the
"service" shim) instead of the old host's /etc/init.d/tomcat8, since that
service doesn't exist there. Kept as a drop-in replacement: the "status"
output still contains both literal substrings upgrade.sh and restart.sh
each grep for, so neither caller needed to change yet.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Tj4SF2BGFxgoRYrCAzNpDb
2026-09-29 17:04:18 +00:00