Skip to content

docs: cover built-in backups, restore, the backup before updates, and profile export - #400

Merged
zZebrahz merged 12 commits into
mainfrom
docs/backups
Nov 18, 2026
Merged

zZebrahz merged 12 commits into
mainfrom
docs/backups

Conversation

@zZebrahz

@zZebrahz zZebrahz commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Closes #333

Silo Server now backs itself up every night, restores parts of a backup from the web app, restores a whole server from the command line, backs up the database before migrations, and lets a profile export and import its own data. The docs covered only manual pg_dump backups, so admins had no guide to Admin > Server > Backups, the restore command, or the new startup wait, and users had no page for Settings > Your Data.

The issue's details came from the server's docs/architecture/backups.md while the pull requests were in review. Every label and flag here was checked against merged code on main instead. One claim in the issue no longer holds: a partial restore doesn't download a missing plugin from the plugin catalogs. It marks the plugin as needing an install (needs_install in internal/backup/selective_plan.go), and the docs say that.

Pages changed

Page Change Preview
Back up your server New page Open
Restore from a backup New page Open
Export and import your data New page Open
Back up by hand and test a restore Retitled from "Plan and test your backups"; intro and "Before an update" point to built-in backups; new "Test a built-in backup" and "Restore a built-in backup into a separate database" Open
Update Silo safely New section "The backup before an update", with a Kubernetes startup probe note Open
Docker deployment reference One startup note under "What runs in the container" Open

Sidebar: a new Back up and restore group under "Running a server", just before Maintain and recover, holds Back up your server, Restore from a backup, and Back up by hand and test a restore. A maintainer asked for this group, so there's no separate navigation issue.

What changed on each page

Back up your server

  • What a backup holds and leaves out, Back up now, the schedule and content settings (Nightly backups, Start time, Copies to keep, Intro detection data, Downloaded subtitles) with defaults, and how copies taken before a restore or an upgrade are kept.
  • Where backups are kept: On this server (with the host path config/silo/artwork/backups), In the private bucket, In an S3 bucket, and the S3 setup steps.
  • A :::danger box on keeping SECRET_KEY, the Key check code, and a tested Docker form of silo secret check.
  • A status table (Complete, Complete with warnings, In progress, Incomplete, Unreadable, Unverified), download and delete, and requirements (PostgreSQL user store, pg_dump/pg_restore).
  • Search terms: keywords: ["automatic backups", "nightly backup", "backup schedule", "retention", "S3 backup", "offsite backup", "key check"], questions: ["How often does Silo back itself up?", "Where are my backups stored?", "Can I send backups to an S3 bucket?", "Why does a backup say complete with warnings?"].

Restore from a backup

  • Restore parts of a backup (Restore…, the six sections, Review restore, Restore, the report), accounts and profiles, what a partial restore never changes, and unverified backups.
  • Restore from another server: download restore-set.tar, Upload a backup, encrypted files and silo backup decrypt, Check again.
  • Restore the whole server: Compose commands to stop Silo in the container, run silo backup restore, and restart; what the command keeps; --keep-redis; the full Compose --recover command and the Redis step after it; what happens afterwards; --accept-lost-credentials for another key, another server, or a new install.
  • New section "Move to a new server" for the standard local-storage setup, with --accept-lost-credentials (a new install has its own server id). It lets the move to a new machine search query pass, so its knownMiss is removed.
  • Search terms: keywords: ["roll back", "disaster recovery", "restore set", "deleted library", "new machine", "migrate server", "silo backup restore"], questions: ["How do I get back a library I deleted?", "Can I copy settings from another Silo server?", "How do I put my whole server back to last night?", "How do I move Silo to a new machine?"].

Worth checking: this page is long, but each section is a separate task. The separate-database restore and silo backup verify moved to the manual backup page's test section. Splitting the full restore into its own page is still an option.

Export and import your data

  • Export my data, what the file holds and leaves out, and Choose an export file with the merge rules, PIN prompt, and one-at-a-time limit. Web app only; the Apple and Android apps have no export.
  • Added under "Your account and preferences" in the sidebar.
  • Search terms: keywords: ["download my data", "watch history export", "transfer profile", "JSON file", "move my profile"], questions: ["Can I download my watch history?", "How do I move my profile to another Silo server?", "Will importing overwrite my progress?"].

Back up by hand and test a restore

  • New title and intro: this page now covers what built-in backups leave out (SECRET_KEY, .env, Compose files, media), manual dumps, and a test restore on another host.
  • "Before an update" mentions the automatic backup and why your own copy still matters.
  • New "Test a built-in backup" (silo backup verify) and "Restore a built-in backup into a separate database" (--into/--blobs-into), moved here from the restore page because they're testing tasks. The copy's nightly backups stay on, so it says to point storage at the new folder and, on the same host, to give the copy its own project name, data root, and ports.
  • keywords changed from ["backup", "restore", "database dump"] to ["database dump", "pg_dump", "manual backup", "lost secret key"] so the broad terms don't pull searches away from the new pages.

Worth checking: the retitle. The slug stays docs/backup-restore, so existing links still work.

Update Silo safely

  • New "The backup before an update": when it runs, Taken before an upgrade, database only, SILO_SKIP_BACKUP_BEFORE_MIGRATE=true for one start, reuse for up to 6 hours, and when it's skipped.
  • "With more than one API server": SILO_MIGRATION_WAIT (60 minutes), health checks not answering, the 20-minute image start period, and a startup probe on /api/v1/ready for Kubernetes sized from Back Up Server in Admin > Server > Scheduled Tasks.
  • The migration paragraph now says docker compose ps shows starting for 20 minutes before unhealthy. "If the update fails" adds rolling back with the Taken before an upgrade copy.

Docker deployment reference

Search queries: back up my server, save my server before upgrading, back up secret key, How do I back up the database before upgrading?, and restoring a backup now also accept the new pages. New queries: export my watch history → docs/your-data, keep backups in S3 → docs/backups, get back a deleted library → docs/restore.

Left out on purpose

  • A Kubernetes page. The docs have none, and the server ships no Kubernetes manifests, so the startup probe advice is a short note on the update page.
  • Selective-restore limits and edge cases: 50 seasonal home sections per restore, passwords stored with an unusual hashing setting left locked, collection rule and sync caps. No other page goes this deep.
  • Manifest, encryption, and journal internals, --accept-superuser, and listing caps.

Evidence

Source reviewed: silo-server ef2c24f9a (backup code unchanged through 17842e976), silo-apple d49d7bd1, silo-android db87f835f. Server PRs Silo-Server/silo-server#3397 through Silo-Server/silo-server#3402 are all merged into main.

Tested on a throwaway single-container server running ghcr.io/silo-server/silo-server:latest (ef2c24f9):

  • Back up now through the API wrote a Complete backup to /config/silo/artwork/backups/<server-id>/<id>/.
  • The documented full-restore commands (s6-svc -d, s6-svwait -D, then silo backup restore --from … through s6-envdir and s6-setuidgid) removed an account created after the backup, kept silo_before_restore_<time>, cleared Redis, and Silo came back ready after docker compose restart silo.
  • printf %s "$SECRET_KEY" | docker run --rm -i --entrypoint silo ghcr.io/silo-server/silo-server:latest secret check printed a key check code.

Needs a hands-on check:

  • Full restore from a bucket with -e SILO_BACKUP_S3_* passed to docker compose exec.
  • "Move to a new server" end to end on a second install, including --accept-lost-credentials.
  • silo backup restore --recover after an interrupted restore.
  • silo backup verify in the single container: the bundled PostgreSQL uses peer authentication on its socket, so a separate drill role needs a password over TCP. The page gives the command without Compose specifics.
  • Rolling back with the Taken before an upgrade copy, then pinning the old image.
bun run test:docs: pass 8, fail 0
bun run build: All internal links are valid.
Search: 149 of 159 queries find an expected page in the top 3.
git diff --check: clean

Follow-ups

  • docs/server-health still says the container's health check can show unhealthy during a long migration without mentioning the 20-minute start period or the backup before it.
  • The SQLite user store message says to import it first, but no page explains how.

Risks

None identified. Documentation only.

Checklist

  • I read and can explain the complete diff.
  • This pull request addresses one concern.

AI Disclosure

  • Harness: Claude Code in T3 Code
  • Tool(s): silo-docs and humanizer skills, git, gh, bun, Docker
  • Model(s): claude-opus-5-5
  • Involvement: Fully AI-generated, human verified
  • Adversarial review: n/a

Note

Add documentation for built-in backups, restore, pre-update backups, and profile export

  • Adds new pages for built-in backups (backups.md) and restores (restore.md), covering backup contents, schedule, retention, storage options, partial and full restores, and moving to a new machine
  • Updates updates.md and docker.md to document the pre-migration database backup and the 20-minute health-check window during migrations
  • Adds profile export/import instructions for watch history, ratings, lists, and preferences to your-data.md
  • Updates the sidebar in sidebar.mjs with a new Back up and restore group and a Your Data link, and revises search-query fixtures in search-queries.json to match the new pages

Macroscope summarized b172293.

@silo-triage silo-triage Bot added the size/L 200–499 added + deleted lines (all files); change volume, not priority. label Nov 18, 2026
@coderabbitai

coderabbitai Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 033e9b22-ea2a-4340-befb-99a3b14526ae
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@silo-kody

silo-kody Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Silo Kody — review complete

Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.

Reviewing changes in Silo
  • Include the related issue, expected behavior, and validation steps in the PR description.
  • For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
  • For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
  • Follow this repository's AGENTS.md and CONTRIBUTING.md.
  • Request another review with @kody start-review in a PR comment.
  • React with 👍 or 👎 to give feedback on individual suggestions.
Review settings
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌

@silo-triage silo-triage Bot added documentation Improvements or additions to documentation triaged High-confidence review completed; does not mean fixed, validated, or accepted for release. labels Nov 18, 2026
@github-actions

github-actions Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Preview removed after this pull request was closed. Its address now redirects to siloserver.org, though some visitors may still see the old preview for a while.

- Restoring another server's backup, or onto a new install, needs
  --accept-lost-credentials even with the same SECRET_KEY.
- Scope the move to a new server to local artwork storage.
- --recover runs with the same Compose wrapper and leaves Redis to clear.
- Partial restore can create an administrator; existing accounts keep
  their access.
- Unverified backups restore every home section turned off.
- API keys and invitations whose owner isn't in the backup are dropped.
- Encrypted files need their key wherever they are.
- Nightly backups off still allows Back up now; settings need Save.
- Move the separate-database restore and the verify drill to the manual
  backup page's test section, and say the copy's nightly backups stay on.
- Tighten the manual backup page's intro and the health-status timing.
@silo-kody

silo-kody Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Silo Kody — review complete

Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.

Reviewing changes in Silo
  • Include the related issue, expected behavior, and validation steps in the PR description.
  • For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
  • For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
  • Follow this repository's AGENTS.md and CONTRIBUTING.md.
  • Request another review with @kody start-review in a PR comment.
  • React with 👍 or 👎 to give feedback on individual suggestions.
Review settings
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌
⚠️ 2 Kody Rule(s) were not evaluated

These rules declare that they need repository context beyond this diff, and the review could not retrieve it, so they were not judged on this pull request:

  • Scope polling setup steps to installable source capabilities
  • Preserve retired documentation URLs with tested redirects

@silo-kody

silo-kody Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Silo Kody — review complete

Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.

Reviewing changes in Silo
  • Include the related issue, expected behavior, and validation steps in the PR description.
  • For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
  • For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
  • Follow this repository's AGENTS.md and CONTRIBUTING.md.
  • Request another review with @kody start-review in a PR comment.
  • React with 👍 or 👎 to give feedback on individual suggestions.
Review settings
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌
⚠️ 2 Kody Rule(s) were not evaluated

These rules declare that they need repository context beyond this diff, and the review could not retrieve it, so they were not judged on this pull request:

  • Scope polling setup steps to installable source capabilities
  • Preserve retired documentation URLs with tested redirects

@silo-kody

silo-kody Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Silo Kody — review complete

Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.

Reviewing changes in Silo
  • Include the related issue, expected behavior, and validation steps in the PR description.
  • For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
  • For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
  • Follow this repository's AGENTS.md and CONTRIBUTING.md.
  • Request another review with @kody start-review in a PR comment.
  • React with 👍 or 👎 to give feedback on individual suggestions.
Review settings
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌
⚠️ 2 Kody Rule(s) were not evaluated

These rules declare that they need repository context beyond this diff, and the review could not retrieve it, so they were not judged on this pull request:

  • Scope polling setup steps to installable source capabilities
  • Preserve retired documentation URLs with tested redirects

@silo-kody

silo-kody Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Silo Kody — review complete

Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.

Reviewing changes in Silo
  • Include the related issue, expected behavior, and validation steps in the PR description.
  • For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
  • For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
  • Follow this repository's AGENTS.md and CONTRIBUTING.md.
  • Request another review with @kody start-review in a PR comment.
  • React with 👍 or 👎 to give feedback on individual suggestions.
Review settings
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌
⚠️ 2 Kody Rule(s) were not evaluated

These rules declare that they need repository context beyond this diff, and the review could not retrieve it, so they were not judged on this pull request:

  • Scope polling setup steps to installable source capabilities
  • Preserve retired documentation URLs with tested redirects

@silo-kody

silo-kody Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Silo Kody — review complete

Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.

Reviewing changes in Silo
  • Include the related issue, expected behavior, and validation steps in the PR description.
  • For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
  • For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
  • Follow this repository's AGENTS.md and CONTRIBUTING.md.
  • Request another review with @kody start-review in a PR comment.
  • React with 👍 or 👎 to give feedback on individual suggestions.
Review settings
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌
⚠️ 2 Kody Rule(s) were not evaluated

These rules declare that they need repository context beyond this diff, and the review could not retrieve it, so they were not judged on this pull request:

  • Scope polling setup steps to installable source capabilities
  • Preserve retired documentation URLs with tested redirects

@silo-kody

silo-kody Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Silo Kody — review complete

Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.

Reviewing changes in Silo
  • Include the related issue, expected behavior, and validation steps in the PR description.
  • For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
  • For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
  • Follow this repository's AGENTS.md and CONTRIBUTING.md.
  • Request another review with @kody start-review in a PR comment.
  • React with 👍 or 👎 to give feedback on individual suggestions.
Review settings
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌

@silo-kody

silo-kody Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Silo Kody — review complete

Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.

Reviewing changes in Silo
  • Include the related issue, expected behavior, and validation steps in the PR description.
  • For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
  • For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
  • Follow this repository's AGENTS.md and CONTRIBUTING.md.
  • Request another review with @kody start-review in a PR comment.
  • React with 👍 or 👎 to give feedback on individual suggestions.
Review settings
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌
⚠️ 2 Kody Rule(s) were not evaluated

These rules declare that they need repository context beyond this diff, and the review could not retrieve it, so they were not judged on this pull request:

  • Scope polling setup steps to installable source capabilities
  • Preserve retired documentation URLs with tested redirects

@zZebrahz
zZebrahz merged commit 33120d8 into main Nov 18, 2026
5 checks passed

This branch was previously deployed

1 inactive deployment
Preview — b1722933 Deployed Nov 18, 2026 by zZebrahz via teardown #183
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/L 200–499 added + deleted lines (all files); change volume, not priority. triaged High-confidence review completed; does not mean fixed, validated, or accepted for release.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Document built-in backups, restore, profile export, and the backup before upgrades

1 participant