Skip to content

Making a backup of the server

Backups in the hosting panel create a consistent copy of the database through SQLite’s backup API, so it is safe to run while the app is in use. The panel keeps the newest ten in the data folder. Download them, because a backup on the same machine is not a backup.

docker compose stop app
docker compose run --rm --no-deps -v "$PWD/backup.sqlite:/restore.sqlite:ro" --entrypoint sh app \
-c 'cp /restore.sqlite /data/db.sqlite && rm -f /data/db.sqlite-wal /data/db.sqlite-shm'
docker compose up -d app

You can restore an older backup into a newer version. The migrations run when the app starts. CI runs these exact steps on every build.

  1. Back up the old instance.
  2. Install on the new machine and finish the wizard. If you use Clerk, enter the same keys.
  3. Restore the backup.
  4. Point your DNS at the new machine.

A linked instance has no Shackworks Net key on the new host. Unlink it on your Net account page, then link it again. See Managing shared data.

docker compose pull && docker compose up -d

Set SHACKWORKS_IMAGE in .env to pin a version. Back up before you upgrade.

docker compose down keeps your data, and docker compose down -v deletes the data volume. An ADIF export contains contacts only. It does not include members, roles or settings.