wire old backup migration into startup

This commit is contained in:
2026-06-03 01:12:19 +02:00
parent 249506994c
commit 9b0086835e
2 changed files with 7 additions and 1 deletions
-1
View File
@@ -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 <archive>`, `--inspect <savefile>` (`.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.
+7
View File
@@ -161,6 +161,13 @@ fn run_app<B: Backend>(terminal: &mut Terminal<B>) -> 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() {