All docs

Running Fettledesk

Backups and upgrades

Back up the database and attachments, restore onto a fresh install, and upgrade safely.

What to back up

Fettledesk keeps its data in two Docker volumes:

VolumeHolds
fettledesk_db-dataThe database: people, projects, tickets, assets and history
fettledesk_app-dataAttachments, and secret.key, which decrypts saved mailbox passwords

Back up

From the Fettledesk folder:

node scripts/backup.mjs

This writes backups/fettledesk-<date>/, holding both: the database (a pg_dump in custom format) and the data volume. The app stops for a few seconds while it runs, so the two match; add --online to skip that.

Run it on a schedule (cron, or Task Scheduler on Windows) and copy the backups somewhere off the server. They hold everything, including secret.key, so keep them encrypted.

Restore

node scripts/restore.mjs backups/fettledesk-2026-11-01 --yes

This replaces everything in the install with the backup. Restoring an older backup onto a newer Fettledesk is fine (database changes run as it starts); not the other way round. Test a restore on a spare machine before you need one.

Knowing when there's an update

Once a day, Fettledesk checks its website for a newer release. When there is one, organisation admins see a notice at the top of the app saying which version is out, with links to what's new and how to update. Dismissing it hides it until the next version.

The check sends nothing about your install. Turn it off with UPDATE_CHECK=false. In-development builds don't check.

One-click updates

An optional updater lets you update from the notice in the app: Update now takes a backup, downloads the new version, restarts Fettledesk and checks that it answers. If the new version doesn't start within three minutes, the updater goes back to the version you had and restores the backup it took a moment before. Only admins can start an update.

It needs a published image. For a new install:

./install.sh --image ghcr.io/stormhawkjordan/fettledesk:1 --updater

For an existing one, add to .env:

FETTLEDESK_IMAGE=ghcr.io/stormhawkjordan/fettledesk:1.0.0
COMPOSE_PROFILES=updater

then start it:

docker compose build updater
docker compose up -d --no-build

Good to know:

  • The updater can control Docker on this machine (it has the Docker socket), which is as powerful as root. It only acts when someone clicks Update in Fettledesk, and only on Fettledesk's app container. Leave it off if you'd rather update by hand.
  • It updates within a major version (1.x to 1.y). A new major version needs steps from you, so it says so and leaves the update to you.
  • It pins FETTLEDESK_IMAGE in .env to the exact version it installed.
  • Backups collect in backups/: copy them somewhere safe, and delete old ones.
  • What it did is in docker compose logs updater.

Upgrade

Back up first, read the changelog for anything a version asks of you, then:

git pull
docker compose up -d --build

Database changes run automatically before the new version starts serving. Each runs in a transaction, under a lock, so a failed one leaves the database as it was, and two copies of the app never change it at once.

They only move forward: there's no going back to an older version on the same database. To go back, restore the backup you took before upgrading, with the older version.

A published image

To run a published image instead of building, set FETTLEDESK_IMAGE in .env to an exact version, and start without building:

docker compose pull
docker compose up -d --no-build