fix(backup): a restore says Subsonic apps are signed out, and restores ListenBrainz switched off (#8104)

The backup leaves out each person's Subsonic password and ListenBrainz
token, which are sealed under the stream secret, but no restore message
said so. The CLI and docs sent people to Admin for keys that live in each
person's own Settings, and the web said nothing. All three now say that
Subsonic apps are signed out and where to make a new Subsonic password and
save the ListenBrainz token.

listenbrainz_enabled travelled without the token, so a restored account
read as on but unable to send. It is now left out too and restores off.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-26 23:53:37 -05:00
co-authored by Claude Opus 5.5
parent 4c0bd9df04
commit 436a970f7b
6 changed files with 30 additions and 14 deletions
+6 -2
View File
@@ -13,7 +13,8 @@ package backup
//
// Omit names columns left out of the file. They restore to their defaults:
// - a credential Minstrel stores sealed, which only the server holding the
// stream secret could open, so the restored server asks for it again;
// stream secret could open, so it is entered again after the restore,
// and a switch that is only on while that credential is set;
// - a marker saying work on an excluded table is done (a tag source, an art
// source), so the restored server does that work again rather than
// believing it has the result.
@@ -26,7 +27,10 @@ type Table struct {
// each after every table it references. There are no self-referencing
// tables, so no table needs its rows loaded in depth order.
var Tables = []Table{
{Name: "users", Omit: []string{"subsonic_password", "listenbrainz_token"}},
// Each person makes a new Subsonic password and saves their ListenBrainz
// token again in their own Settings. ListenBrainz restores to off, since
// it can't send without the token.
{Name: "users", Omit: []string{"subsonic_password", "listenbrainz_token", "listenbrainz_enabled"}},
// The library's identity. Every like, play and playlist entry hangs off a
// track id, so the rows travel even though a scan could rebuild most of