Add min-keep retention and email report to WordPress backup cleanup - #20
Merged
locus313 merged 1 commit intoAug 24, 2026
Merged
Conversation
…il report - Add MIN_KEEP (default 3) so each domain always retains its N most recent WordPress backups regardless of age, on top of the existing DAYS retention - Add EMAIL_TO/EMAIL_SUBJECT to send a per-domain report (backups found, removed, and filenames removed) via the local mail command - Add SMTP_SERVER/SMTP_PORT/SMTP_AUTH_USER/SMTP_AUTH_PASS/SMTP_SECURE/ SMTP_FROM fallback (via curl) for servers without a local MTA, matching the SMTP env var naming already used in monitor-aspnet.bat - Update README features, usage examples, and env var docs Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
locus313
deleted the
feature/wordpress-backup-min-keep-and-email-report
branch
August 24, 2026 23:50
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
MIN_KEEP(default3): each domain always retains its N most recent WordPress backups, regardless ofDAYSage-based retention.EMAIL_TO/EMAIL_SUBJECT: sends a per-domain report (backups found, backups removed/would-remove, filenames removed) via the localmailcommand.SMTP_SERVER/SMTP_PORT/SMTP_AUTH_USER/SMTP_AUTH_PASS/SMTP_SECURE/SMTP_FROM: SMTP relay fallback viacurlfor servers with no local MTA, matching the SMTP env var naming already used inmonitor-aspnet.bat.Testing
shellcheckclean (only a pre-existing intentional-glob info remains).MIN_KEEPnewest backups per domain.mailcommand.curlcommand (nomailpresent), confirming STARTTLS flag, auth, and headers.