Skip to main content

Updates and Backups

Keep the container current by rebuilding it from updated source, and protect its state by backing up /config together with its installation key.

Update the Image

  1. Update your copy of the repository, for example with git pull.
  2. Rebuild and restart the container from the repository root:
Repository root
bash
docker compose up --build --detach
  • At start, the database changes built into the new image are applied automatically.
  • Transmission's settings file is rebuilt from your saved settings.
  • /config and /data are kept, and an enabled VPN connection reconnects on its own.

info

Release tags publish multi-architecture images to Docker Hub and GHCR. These steps cover updating a copy built from source.

Upgrade the old state layout

Older images kept app state under /data, with the database and key below app/. Stop the container before changing mounts.

  • Same host folder, new path — Change the state folder from -v <state-folder>:/data to -v <state-folder>:/config, and mount downloads separately at /data. The old files appear under /config at their former relative paths.
  • Old run line — When only /data is mounted and old state markers are present, Nova uses /data as the state directory for that start and logs a warning to change the mount to /config.

In either case, startup moves app/keys/installation.key to keys/installation.key and app/state.sqlite3, including present -wal and -shm sidecars, into database/. A raw 32-byte installation key is rewritten as the same key bytes encoded as 64 lowercase hexadecimal characters plus a newline. The migration runs only when every destination is empty, never overwrites a file, logs every move and conversion, and stops startup if it cannot complete safely.

Choose an Export or /config Backup

Use an export file when selected settings need to move between installations. It is portable, does not need the source installation key, and can include settings and profiles, labels, notifications, the torrent list, VPN connections, RPC logins, and API tokens.

Use a complete /config backup when the whole installation needs to be restored exactly. It keeps the administrator account, sign-in security, browser sessions, database, import progress, managed configuration, the installation key, and Transmission's own configuration files together.

Neither choice copies downloaded data under /data. Export and Import covers portable exports and imports; the sections below cover the complete /config copy.

Back Up Your Data

The config volume holds everything the container needs to pick up where it left off:

PathContents
/config/database/state.sqlite3The database, with any -wal and -shm files beside it, holding the settings, the account, the saved VPN connection, the profiles, and the notification destinations.
/config/keys/installation.keyThe mode 0600 key file in a mode 0700 folder. It contains 64 lowercase hexadecimal characters plus a newline and decrypts the authenticator app's secret, VPN profile contents and connection credentials, and notification secret fields.
/config/transmission/Transmission's configuration folder.
/config/managed.jsonThe optional managed configuration file.

danger

A backup without installation.key can't decrypt VPN profile contents and connection credentials, the authenticator app's secret, or the notification secrets. When the file is missing at start, the container makes a new key and removes them, as covered in Missing Installation Key.

It is recommended to stop the container while copying, so the database isn't changing:

  1. Stop the container with docker compose stop app.
  2. Copy the whole /config folder, keeping file ownership and permissions.
  3. Start the container with docker compose start app.

With a Host Folder

When /config is a host folder, such as ./config, archive it from the host:

bash
docker compose stop app
sudo tar -czpf transmission-vpn-config.tar.gz -C ./config .
docker compose start app

With the Default Named Volume

When /config uses the Compose file's named volume, archive it through a one-off container from the same image:

bash
docker compose stop app
docker compose run --rm --no-deps --entrypoint tar \
  --volume "$PWD":/backup \
  app -czpf /backup/transmission-vpn-config.tar.gz -C /config .
docker compose start app

Restore a Backup

It is recommended to restore into an empty /config, so no files from the old state remain. A key file from another database stops startup with a message that explains the fix, as covered in Troubleshooting.

Into a Host Folder

bash
docker compose down
sudo rm -rf ./config
sudo mkdir ./config
sudo tar -xzpf transmission-vpn-config.tar.gz -C ./config
docker compose up --detach

Into the Default Named Volume

bash
docker compose down
docker volume rm transmission-vpn_config
docker compose run --rm --no-deps --entrypoint tar \
  --volume "$PWD":/backup \
  app -xzpf /backup/transmission-vpn-config.tar.gz -C /config
docker compose up --detach

The Compose project is named transmission-vpn, so its config volume is called transmission-vpn_config. After the restore, the saved VPN connection reconnects on its own when it was enabled.

Missing Installation Key

When installation.key is missing at start, the container makes a new one instead of stopping. Secrets encrypted with the old key can't be opened anymore, so it removes them and keeps everything else.

What Gets Removed

The account, its password and passkeys, sessions, API tokens, settings, torrents, VPN connection rows, and the destinations themselves stay, because they don't use the key. Transmission's traffic stays blocked until a connection passes Test and connect again.

On that start, the logs show one warning whose message lists what was removed:

text
2026-11-17T19:25:30Z WARN control-api: No installation key was found at /config/keys/installation.key, so Transmission VPN made a new one. These saved secrets were locked with the old key and were removed: the VPN details for each connection, the authenticator app for <username>, the <name> notification. Enter them again in the web interface.

Destinations without secret fields that chose Saved secrets were removed get an alert with the same list while the container starts. When nothing used the old key, such as on a new installation, there's no warning, no alert, and no notice.

Enter Them Again

The web interface shows Saved secrets were removed at the top of every page, with a link for each removed item:

Saved secrets were removed notice with links to set up the authenticator app, enter the VPN connection details again, and set up the Downloads feed and Homelab chat notifications again, and a Dismiss button
The notice after a lost installation key

Each item leaves the notice once it's set up again. Dismiss hides the notice, and anything not set up again stays removed.

Lost Authenticator

  • With a recovery code, sign in with it in place of the authenticator code. Then open Sign-in and security, turn off the authenticator app, and set it up again on your new device.
  • With a passkey, sign in with it and do the same.
  • Without either, delete the installation key with docker compose exec app rm /config/keys/installation.key and run docker compose restart app. The authenticator app is then turned off so the password signs you in, but the VPN endpoint profiles and credentials and the notification secrets are removed too, as described in Missing Installation Key.