Back up, and prove it restores
Archive Studio's data volume, then restore it into a second copy of Studio beside the first, sign in to the copy and reach your SIEM from it, and remove it.
Goal
An archive of Studio's data and a copy of its .env, kept off the host, and proof that they restore: a second Studio, started from them beside the first, that signs you in and reaches your SIEM.
Before you start
The install course restored an archive over the live volume. That proves the archive, but only by putting the install at stake. This lesson restores into a second copy beside the live one, which is never touched, so it is a drill you can run every month.
Take the backup. Stop Studio, archive the volume, and start it again:
docker compose down docker run --rm \ -v talon-studio_talon_data:/data:ro \ -v "$PWD/backups:/backup" \ busybox tar czf /backup/talon-data.tgz -C /data . docker compose up -dOn the example install that took 38 seconds. Copy
backups/talon-data.tgzand.envsomewhere that is not this host. The installer wrote Studio's encryption key into.env, and without it the secrets in the archive, such as your SIEM token, cannot be read.
Give the copy a folder of its own. Beside
talon-studio:mkdir ../talon-restore cp docker-compose.yml .env ../talon-restore/ cd ../talon-restoreIn the copy's
.env, addTALON_HTTP_PORT=3001, and setNEXTAUTH_URLto the copy's address,https://restore.example.com. Leave everything else as it is: the copy needs the same encryption key and database password as the archive.
Restore into a project of its own. The compose file names its project
talon-studio, so a plaindocker composehere would act on the live install. Give every command in this folder-p talon-restore:docker volume create talon-restore_talon_data docker run --rm \ -v talon-restore_talon_data:/data \ -v "$PWD/../talon-studio/backups:/backup" \ busybox tar xzf /backup/talon-data.tgz -C /data docker compose -p talon-restore up -d app curl -s localhost:3001/api/healthThe archive unpacks in seconds. Once Studio has started, the health check answers
{"status":"ready"}.
Prove it is your Studio. Open
https://restore.example.comand sign in with your own name and password. Your workspaces and detections are there. On Connect → SIEM, press Recheck on your SIEM's card: it turns Active, because the key in.envdecrypts the token the archive holds. If the card says instead that it is unable to decrypt, the copy's.envhas a different key from the one the archive was made with.

Remove the copy. It is a full twin of your Studio, with your SIEM's token and your notification settings, so do not leave it running:
docker compose -p talon-restore down docker volume rm talon-restore_talon_datadown -vwould not remove this volume: Compose did not create it, so it leaves it. Remove it by name, then delete the folder.
You should now see
docker compose ls lists only talon-studio, and docker volume ls no talon-restore_talon_data. You have an archive and a .env off the host, and you know they restore, because you signed in to a Studio made from them.
Quick check
Go deeper
- Backup & Restore, for what the volume holds and a schedule for backups.