Repository navigation
docs: cover built-in backups, restore, the backup before updates, and profile export - #400
Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
Silo Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
|
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 — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
# Conflicts: # scripts/search-queries.json
…rt from the live server
Silo Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
Silo Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
Silo Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
Silo Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
Silo Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
# Conflicts: # scripts/search-queries.json
…copies searches still find download storage
Silo Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
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_dumpbackups, 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.mdwhile the pull requests were in review. Every label and flag here was checked against merged code onmaininstead. 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_installininternal/backup/selective_plan.go), and the docs say that.Pages changed
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
config/silo/artwork/backups), In the private bucket, In an S3 bucket, and the S3 setup steps.:::dangerbox on keepingSECRET_KEY, the Key check code, and a tested Docker form ofsilo secret check.pg_dump/pg_restore).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-set.tar, Upload a backup, encrypted files andsilo backup decrypt, Check again.silo backup restore, and restart; what the command keeps;--keep-redis; the full Compose--recovercommand and the Redis step after it; what happens afterwards;--accept-lost-credentialsfor another key, another server, or a new install.--accept-lost-credentials(a new install has its own server id). It lets themove to a new machinesearch query pass, so itsknownMissis removed.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 verifymoved 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
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
SECRET_KEY,.env, Compose files, media), manual dumps, and a test restore on another host.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.keywordschanged 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
SILO_SKIP_BACKUP_BEFORE_MIGRATE=truefor one start, reuse for up to 6 hours, and when it's skipped.SILO_MIGRATION_WAIT(60 minutes), health checks not answering, the 20-minute image start period, and a startup probe on/api/v1/readyfor Kubernetes sized from Back Up Server in Admin > Server > Scheduled Tasks.docker compose psshowsstartingfor 20 minutes beforeunhealthy. "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?, andrestoring a backupnow 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
--accept-superuser, and listing caps.Evidence
Source reviewed: silo-server
ef2c24f9a(backup code unchanged through17842e976), silo-appled49d7bd1, silo-androiddb87f835f. Server PRs Silo-Server/silo-server#3397 through Silo-Server/silo-server#3402 are all merged intomain.Tested on a throwaway single-container server running
ghcr.io/silo-server/silo-server:latest(ef2c24f9):/config/silo/artwork/backups/<server-id>/<id>/.s6-svc -d,s6-svwait -D, thensilo backup restore --from …throughs6-envdirands6-setuidgid) removed an account created after the backup, keptsilo_before_restore_<time>, cleared Redis, and Silo came back ready afterdocker compose restart silo.printf %s "$SECRET_KEY" | docker run --rm -i --entrypoint silo ghcr.io/silo-server/silo-server:latest secret checkprinted a key check code.Needs a hands-on check:
-e SILO_BACKUP_S3_*passed todocker compose exec.--accept-lost-credentials.silo backup restore --recoverafter an interrupted restore.silo backup verifyin 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.Follow-ups
docs/server-healthstill says the container's health check can showunhealthyduring a long migration without mentioning the 20-minute start period or the backup before it.Risks
None identified. Documentation only.
Checklist
AI Disclosure
Note
Add documentation for built-in backups, restore, pre-update backups, and profile export
Macroscope summarized b172293.