Back up and restore
Back up
Section titled “Back up”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:
-
Open Settings › Backups.
-
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:
docker run --rm -v telesphorepo-data:/data -v telesphorepo-backups:/backups \ ghcr.io/telesphorepo/telesphorepo:latest backup /backupsKeep the master key safe
Section titled “Keep the master key safe”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:
-
Before the first start, make a key and save it as a secret.
Terminal window openssl rand -base64 32 -
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.
Restore
Section titled “Restore”-
On Settings › Backups, point at a backup to see its folder name, such as
20261020T201500.123Z. -
Remove the server container.
Terminal window docker rm -f telesphorepo -
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 -
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
If something goes wrong
Section titled “If something goes wrong”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.