Skip to content
Select theme
  • Auto
  • Dark
  • Light

Back up and restore

The server backs itself up into the /backups volume every 24 hours, and keeps the newest 7. Put that volume on another disk if you can.

To back up now:

  1. Open Settings › Backups.

  2. Click Back up now.

A backup holds the database, the master key and the stored files.

With R2 or S3, the files stay in the bucket. Back up the bucket too, with its versioning or replication.

Back up from the command line

This works while the server runs:

Terminal window
docker run --rm -v telesphorepo-data:/data -v telesphorepo-backups:/backups \
ghcr.io/telesphorepo/telesphorepo:latest backup /backups

The master key encrypts the secret settings. The server keeps it in the data volume, and each backup holds a copy.

To keep it out of the volume instead:

  1. Before the first start, make a key and save it as a secret.

    Terminal window
    openssl rand -base64 32
  2. Pass it to the server in TR_MASTER_KEY.

    Terminal window
    docker run -d --name telesphorepo -p 127.0.0.1:8080:8080 -v telesphorepo-data:/data -v telesphorepo-backups:/backups \
    -e TR_MASTER_KEY="$(cat /run/secrets/tr_master_key)" \
    ghcr.io/telesphorepo/telesphorepo:latest

Never change it later. Backups then hold no key, so keep the key with them.

  1. On Settings › Backups, point at a backup to see its folder name, such as 20261020T201500.123Z.

  2. Remove the server container.

    Terminal window
    docker rm -f telesphorepo
  3. Restore the backup into a new, empty volume.

    Terminal window
    docker run --rm -v telesphorepo-backups:/backups -v telesphorepo-restored:/data \
    ghcr.io/telesphorepo/telesphorepo:latest restore /backups/20261020T201500.123Z
  4. Start the server on that volume.

    Terminal window
    docker run -d --name telesphorepo -p 127.0.0.1:8080:8080 -v telesphorepo-restored:/data -v telesphorepo-backups:/backups ghcr.io/telesphorepo/telesphorepo:latest
The Backups page says backups are off

The downloaded program has no backup folder. Set Folder on Settings › Backups.

The restore says the backup is from a newer version

Start the server with the image of the version that the restore names.