Auto-backup: daily Settings.json snapshots + Settings tab in Restore auto-backup - #14799
Merged
Conversation
…tore auto-backup Settings.json is now copied to AutoBackup/Settings when Subtitle Edit starts, at most once per configured interval (default 1 day), keeping the newest N (default 30). The Restore auto-backup window gets two tabs: Subtitles (as before) and Settings, with an info header, "Back up now", "Restore settings" and "Delete all". Restoring loads the backup into the live Se.Settings and saves it, so the exit-time save cannot overwrite it; the current settings are backed up first so a wrong pick is undoable. New settings (Options > Settings > File): Auto-backup settings, interval in days, number of backups to keep. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
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
AutoBackup/Settings/when Subtitle Edit starts, at most once per configured interval (default: 1 day). The newest N backups are kept (default: 30). Backups are namedyyyy-MM-dd_HH-mm-ss_Settings.json; "due" and rotation decisions read the time stamp from the file name, so a copied folder does not postpone the next backup.Se.Settingsand saves it. A plain file copy would be overwritten by the exit-time settings save, hence the load-then-save. The user is told to restart for all changes to take effect.Test plan
dotnet buildofsrc/uisucceedsSettingsBackupTests(4 tests) pass: file-name time parsing, keep-newest rotation ignoring unrelated files, missing folder, and the window listing settings backups newest-first in its own tab*_Settings.jsoninAutoBackup/Settings🤖 Generated with Claude Code