From 9b0086835e4c1f68ebfe8c72151d19a64036f0bd Mon Sep 17 00:00:00 2001 From: forkless Date: Wed, 3 Jun 2026 01:12:19 +0200 Subject: [PATCH] wire old backup migration into startup --- GOVERNANCE.md | 1 - src/main.rs | 7 +++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/GOVERNANCE.md b/GOVERNANCE.md index ae452e2..8a3f0d7 100644 --- a/GOVERNANCE.md +++ b/GOVERNANCE.md @@ -100,7 +100,6 @@ Planned changes for upcoming releases, ordered by priority. |--------|------| | v0.4.0 | ✅ All v0.4.0 items completed — released 2026-06-03 | | v0.5.0 | CLI flags: `--backup`, `--extract `, `--inspect ` (`.sav`/`.bak`), `--list` | -| v0.5.0 | Wire migration notification into startup (user dialog + log, old files untouched) | | v0.5.0 | Move existing `transaction.log` into `logs/` directory on first launch | Items may shift between releases depending on feedback and urgency. diff --git a/src/main.rs b/src/main.rs index 4bee755..a4a72e2 100644 --- a/src/main.rs +++ b/src/main.rs @@ -161,6 +161,13 @@ fn run_app(terminal: &mut Terminal) -> Result<()> { guard::log_action("MIGRATE", "old config.ini removed", "SAFE", &app.log_path)?; } + // Migrate old directory-tree backups to tar.gz + if let Ok(n) = ops::migrate_old_backups() { + if n > 0 { + guard::log_action("MIGRATE", &format!("{n} old backup(s) migrated to tar.gz, originals in NotAlterra_Backups/ untouched"), "OK", &app.log_path)?; + } + } + // Quick check of common save locations (current user only, no profile scans) if app.save_folder.is_none() { if let Some(path) = discovery::quick_discover() {