Skip to content

Add backup rotation settings with configurable retention#38

Merged
svtica merged 2 commits intomainfrom
claude/backup-rotation-settings-ihCxm
Mar 24, 2026
Merged

Add backup rotation settings with configurable retention#38
svtica merged 2 commits intomainfrom
claude/backup-rotation-settings-ihCxm

Conversation

@svtica
Copy link
Copy Markdown
Owner

@svtica svtica commented Mar 24, 2026

Summary

  • Add a new Backup tab in Options with settings to enable/disable automatic backups, enable/disable rotation, configure retention days (1-365), and maximum backup count (5-500)
  • CleanupOldBackups now reads settings from XML and enforces both age-based retention and count-based file count rotation (deletes oldest files when exceeding max count)
  • CreateBackup checks the backup enabled setting before creating backup files
  • Added GetBackupSettings / SaveBackupSettings methods to XMLManager
  • Cascading enable/disable logic: unchecking backup disables rotation controls; unchecking rotation disables retention/count controls
  • French translations added for all new labels, checkboxes, and tooltips

claude added 2 commits March 24, 2026 15:08
- Add backup enable/disable toggle and rotation settings (retention days, max backup count) to XMLManager
- CleanupOldBackups now reads settings from XML and enforces both age-based retention and count-based rotation
- CreateBackup checks if backups are enabled before creating a backup file
- Add new Backup tab in OptionsForm with checkboxes and numeric controls
- Implement enable/disable cascading: backup disabled → rotation controls disabled; rotation disabled → retention/count controls disabled
- Add GetBackupSettings/SaveBackupSettings methods to XMLManager
- Add French translations for all backup tab labels, checkboxes, and tooltips

https://claude.ai/code/session_013WsUNfpT7fUYnJkk67eFSn
- Replace all hardcoded English strings in MessageBox.Show calls with TranslationManager lookups (init error, load error, save success/error, test email success/error, validation errors)
- Use translated test email subject/body from existing fr.xml keys
- Translate BrowseLogFolder dialog description
- Fix SqlTab tooltip keys to match existing fr.xml keys (SqlTab.Tooltip.* → Options.Tooltip.*)
- Add missing French translations: Options.LoadError, Options.BrowseLogFolder

https://claude.ai/code/session_013WsUNfpT7fUYnJkk67eFSn
@svtica svtica merged commit 2e92f25 into main Mar 24, 2026
1 check passed
@svtica svtica deleted the claude/backup-rotation-settings-ihCxm branch March 24, 2026 17:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants