Files
Docwell/Docs-Site/guide/backups-upgrades.md
T
tajniak81andClaude Opus 5.5 dbe49b892f
CI / go (Server) (push) Canceled after 0s
CI / go (Web-App) (push) Canceled after 0s
CI / frontend (push) Canceled after 0s
CI / desktop (macos-latest) (push) Canceled after 0s
CI / desktop (ubuntu-latest) (push) Canceled after 0s
CI / desktop (windows-latest) (push) Canceled after 0s
CI / mobile (push) Canceled after 0s
CI / docker (push) Canceled after 0s
Docs / build (push) Canceled after 0s
Docs / deploy (push) Canceled after 0s
Release / images (., Docker-AIO/Dockerfile, docwell) (push) Canceled after 0s
Release / images (., Server/Dockerfile, docwell-server) (push) Canceled after 0s
Release / images (., Web-App/Dockerfile, docwell-web) (push) Canceled after 0s
Release / images (Database, Database/Dockerfile, docwell-db) (push) Canceled after 0s
Add multi-arch release images and a documentation site
Release: pushing a v* tag builds docwell-db, docwell-server, docwell-web
and the all-in-one image for linux/amd64 and linux/arm64 and pushes
them to GHCR, tagged with the version and latest. The build stages run
on the build machine's platform and Go cross-compiles, so arm64 needs no
emulation except for the final apk step (checked by building the server
image for arm64). The compose files name the released images, so
`docker compose up -d` runs a release and `--build` still builds the
checkout; DOCWELL_REGISTRY and DOCWELL_VERSION pick them.

Docs: Docs-Site is a VitePress site with a quick start, every
configuration variable, reverse-proxy setups, backups and upgrades, a
user guide, people and access, the admin panel and the API. CI builds
it, and the Docs workflow publishes it to GitHub Pages. It lives outside
docs/, which stays local planning material.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 17:45:16 +01:00

1.5 KiB

Backups and upgrades

Everything that matters lives in docwell-db's data directory (the pb_data volume): the database, page history and, unless files go to S3, the uploaded files. The search index in docwell-server's /data is rebuilt from it.

Backups

In Admin panel → Maintenance → Backups, Create backup writes a zip of the database and its files into pb_data/backups. Download it and keep a copy somewhere else: a backup on the same disk does not survive the disk.

Backups made while people edit are consistent: PocketBase copies the database safely while it runs.

For scheduled backups, back up the pb_data volume with your usual tools (for example a nightly docker run of restic or borg against the volume), or call the API from cron:

curl -fsS -X POST https://wiki.example.com/api/v1/admin/backups -H "Authorization: Bearer $TOKEN"

Restore

  1. Stop Docwell: docker compose down.
  2. Replace the contents of the pb_data volume with the contents of the backup zip.
  3. Start Docwell again: docker compose up -d. The search index rebuilds on its own.

Upgrades

  1. Make a backup and download it.

  2. Read the release notes for anything to do by hand.

  3. Pull and restart:

    docker compose pull
    docker compose up -d
    

    Pin a version with DOCWELL_VERSION=0.1.0 in .env instead of following latest.

Database changes (migrations) run on their own when docwell-db starts. Going back to an older version after a migration is not supported; restore the backup instead.