Repository navigation
feat(app): Backup in Settings, to save a copy and restore one - #201
Merged
Merged
Conversation
backup.stage opens a backup with the passphrase into <home>/restore and checks its manifest and database; backup.confirm marks it, and on the next start, before the database opens, the daemon unpacks it, moves the current database and the whole workspaces_root aside (never deleted), and puts the backup's in place. backup.cancel drops it. A marker is cleared first, so a failing backup is not tried forever. Spec 14.2.
Save a copy: the passphrase twice, then the system's Save dialog for the file the daemon sealed. Restore a copy: the system's Open dialog for a .botloft file, its passphrase, what the copy holds (crews, bots, the work folders that are not in it) and Restore and restart. Errors are worded from the daemon's reasons. The host gains pickFile. Spec 14.2.
httpsphl
enabled auto-merge
October 5, 2026 17:54
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.
Third part of backups, stacked on #199 and #200: this diff includes their commits until they merge.
Settings has a new Backup page.
Save a copy
backup.exportmakes the file, then the system's Save dialog keeps it where the owner picks.Restore a copy
.botloftfiles. This is the new hostpickFile.backup.stage.backup.confirm, thenrestartDaemon. Cancel callsbackup.cancel.Errors are worded from the daemon's reasons (wrong passphrase, not a copy, newer copy, short passphrase). Texts in en, pt-BR and es.
Spec: 14.2.
Tests:
backup.test.tsxcovers matching passphrases, Save as, the file filter, a wrong passphrase, the summary, and confirm with restart.Manual: save a copy, then restore it on a test install, or after
pnpm localon the owner's PC with their OK.