fix(backup): put restic exclude flags after the backup subcommand #75
No reviewers
Labels
No labels
breadbug
bug
displays
enhancement
keybinds
network
phase-1
power
privacy
recovery
search
snapshots
sound
ui
ux
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Breadway/bos-settings!75
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/bset-72-restic-arg-order"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes BSET-72
What
restic_backupandscheduled_backupbuiltrestic --repo R --exclude-caches --exclude node_modules ... backup $HOME. The exclude flags belong to thebackupsubcommand, so restic stopped withunknown command "node_modules" for "restic". Every manual and scheduled backup failed, and Backup.svelte's first-run init fallback never ran because the error never says "does not exist".Both paths now share
backup_args:--repo R backup <excludes> $HOME.Tests
backup_subcommand_precedes_its_flags: argv order.restic_accepts_backup_args: realrestic init,backupandls latestagainst a temp repo when restic is installed. It checks that a normal file is backed up and.cacheis excluded. Both tests fail on the old order with the exact VM error, and pass now.Capability changes
None. Same excludes, same paths, same password handling.
Review of BSET-72 at exact head
5acab56f82(base main14d1315872)Verdict: code accepted, merge BLOCKED pending CI. The required Forgejo check "check / check (push)" on
5acab56has been "Waiting to run" (queued behind a bread-ecosystem job on the shared self-hosted runner) since 20:41 and was still pending at 21:08 after bounded polling.Criteria:
--repo R backup <excludes...> $HOME: pass. restic_backup calls the new backup_args (src/src/commands/backup.rs:197-202, 215).Evidence (detached scratch worktree at
5acab56):unknown command "node_modules" for "restic".Next action: merge with a merge commit once "check / check (push)" is green on
5acab56and the head/base are re-confirmed.