Upgrades and Backups
Everything on this page is for a server started with the published compose.yml, run in the folder that holds it. For the systemd install, run the same cambium-server commands as the service's own user.
Upgrading
compose.yml names a release line, such as 0.5, and patch releases of that line arrive with:
docker compose pull && docker compose up -dYour data, accounts and fingerprint carry over. Moving to a new line, such as 0.6, means changing the tag on the image: line, and every desktop app updates to the same version, since a client and server of different lines refuse each other. The server copies its database aside before changing it, and an older server refuses data a newer one has written.
Backing up the whole server
One command copies everything (accounts, preferences, projects, history and the certificate) while the server keeps running:
docker compose exec cambium cambium-server backup /backup
mkdir -p backup && docker compose cp cambium:/backup/. backup/The first command writes the backup into the server's backup volume, and the second copies it out to a folder beside compose.yml. Run them on a schedule, nightly from cron for example, into the same place each time: later runs copy only what is new. Then copy that folder off the machine with any tool. A backup kept on the same disk as the server is no backup.
Restoring
A restore goes into a data folder of your own (below), on this machine or a new one. In the folder that holds compose.yml:
docker compose stop. If the server already uses a data folder, move it aside (datatodata.old) rather than emptying it: if the backup turns out to be bad, that is the only good copy left.- Make a new, empty data folder, copy the backup's
cambium.db,blobs/,builds/andtls/into it, and give it to the server's user:sudo chown -R 10001:10001 /srv/cambium. - Point
compose.ymlat that folder, as below, anddocker compose up -d. docker compose exec cambium cambium-server fsck --all, which reads every stored file and checks it against the history.- Only once that passes, delete the old data. A Docker volume you no longer use is removed with
docker volume rm.
Sessions and locks come back as they were when the backup was taken.
Keeping data in a folder of your own
The Docker volume suits most servers. To keep the data at a path you choose instead, such as a separate disk, give the folder to the server's user (uid 10001) and change the mount in compose.yml:
sudo mkdir -p /srv/cambium/data && sudo chown -R 10001:10001 /srv/cambium volumes:
- /srv/cambium/data:/data
- backup:/backupThe data folder has to be on a filesystem with Unix owners and hard links, so a folder shared from Windows will not do; keep the volume there.
Locked out
If the only admin forgets their password, reset it from the server itself. This also signs that account out everywhere:
docker compose exec cambium cambium-server reset-password @mikecambium-server create-admin @handle adds another admin the same way.
Checking on it
| Command | What it tells you |
|---|---|
docker compose ps | Whether it is running, and whether its health check passes. |
docker compose logs -f cambium | One line per request, with an id that the app shows in its error messages, so a report can be matched to its line. Sign-ins, account changes and admin actions are logged too, never with passwords, tokens or codes. |
docker compose exec cambium cambium-server check | Validates the settings and the data folder without changing anything. |
docker compose exec cambium cambium-server fsck --all | Re-reads every stored file and checks it against the history. |
docker compose exec cambium cambium-server export <project> /backup/copy | Writes a plain, browsable copy of a project's latest files. |
The server watches its own disk, and refuses uploads with a clear message before the disk fills rather than after. Admins see a banner in the app when storage runs low.
Checking a download
Every release and every server image is signed with one key, and the public key is published in the source package, as cosign.pub. With cosign 2.4 or later, check the release's checksums file, then your downloads against it:
cosign verify-blob --key cosign.pub \
--bundle SHA256SUMS.txt.sigstore.json SHA256SUMS.txt
sha256sum -c --ignore-missing SHA256SUMS.txtAnd the server image:
cosign verify --key cosign.pub cambiumvcs.com/cambium-server:0.5