diff --git a/README.en.md b/README.en.md
index a3cc968..ed203fc 100644
--- a/README.en.md
+++ b/README.en.md
@@ -45,6 +45,9 @@ Step-by-step use cases, from the clone of the repository to a ready instance:
- [Docker in an LXD container](demo/docker/README.en.md): install the
`docker-unprivileged` profile, launch an instance and use Docker.
+- [Back up your LXD instances with Backrest](demo/backrest/README.en.md): a
+ backup instance reading the volumes of the others read-only, configured from
+ the web UI, then restic on the command line.
## Usage
diff --git a/README.md b/README.md
index c21f987..64b80c7 100644
--- a/README.md
+++ b/README.md
@@ -46,6 +46,9 @@ Des cas d'usage pas à pas, du clone du dépôt à une instance prête à servir
- [Docker dans un conteneur LXD](demo/docker/README.md) : installer le profil
`docker-unprivileged`, lancer une instance et utiliser Docker.
+- [Sauvegarder ses instances LXD avec Backrest](demo/backrest/README.md) : une
+ instance de sauvegarde qui lit les volumes des autres en lecture seule,
+ configurée depuis l'interface web, puis restic en ligne de commande.
## Utilisation
diff --git a/demo/README.en.md b/demo/README.en.md
index 56a5cae..1991f68 100644
--- a/demo/README.en.md
+++ b/demo/README.en.md
@@ -18,6 +18,8 @@ The `.cast` files can be played in Gitea's file view (asciinema player).
| `install.yaml` | `install`, diff and confirmation after a change in LXD, `import` | LXD, profile `unattended-upgrades` not installed |
| `docker/install.yaml` | [Docker tutorial](docker/README.en.md): clone the repository, install the `docker-unprivileged` profile, launch an instance and follow cloud-init | LXD, mise, no instance `docker` nor profile `docker-unprivileged` |
| `docker/usage.yaml` | [Docker tutorial](docker/README.en.md): `lxc exec`, then `lxc shell` and Docker commands in the instance | LXD, mise |
+| `backrest/install.yaml` | [Backrest tutorial](backrest/README.en.md): `app-backrest` profile, volumes, backup instance | LXD, mise, no `backrest` nor `app` instance, no `backups` nor `app-data` volume, no `app-backrest` profile |
+| `backrest/restore.yaml` | [Backrest tutorial](backrest/README.en.md): restic on the command line, restoring a file | LXD, mise |
## Recording a demo
@@ -35,13 +37,17 @@ into the repository); their hidden epilogue restores the repository file as it
was and deletes the profile. These scenarios refuse to start if that profile is
already installed.
-The scenarios of a tutorial live in a subdirectory (`docker/`), with their own
-`setup.sh` preamble: it creates or checks what the scenario needs (instance,
+The scenarios of a tutorial live in a subdirectory (`docker/`, `backrest/`),
+with their own `setup.sh` preamble (shared functions in `lib.sh`): it creates or checks what the scenario needs (instance,
profile, clone of the repository in a temporary directory), and its epilogue
removes what the demo created. These scenarios let the shell display its own
prompt (`prompt: ""` for autocast), so that the instance root shell opened by
`lxc shell` keeps its own.
+Web UI screenshots (`backrest/*.png`) are made by `backrest/screenshots.sh`: a
+Debian instance with Chromium, driven by Playwright (`screenshots.mjs`), fills
+in the UI forms; everything is removed at the end.
+
`castfix.py` touches up each recording: it puts back the shell prompt that
autocast drops (at the start and after a `!Clear`) and speeds up the progress
dots of `cloud-init status --wait`.
diff --git a/demo/README.md b/demo/README.md
index 7fab732..29fcd39 100644
--- a/demo/README.md
+++ b/demo/README.md
@@ -18,6 +18,8 @@ Les fichiers `.cast` se lisent dans la vue fichier de Gitea (lecteur asciinema).
| `install.yaml` | `install`, diff et confirmation après une modification dans LXD, `import` | LXD, profil `unattended-upgrades` non installé |
| `docker/install.yaml` | [tutoriel Docker](docker/README.md) : clone du dépôt, installation du profil `docker-unprivileged`, lancement d'une instance et suivi de cloud-init | LXD, mise, ni instance `docker` ni profil `docker-unprivileged` |
| `docker/usage.yaml` | [tutoriel Docker](docker/README.md) : `lxc exec`, puis `lxc shell` et commandes Docker dans l'instance | LXD, mise |
+| `backrest/install.yaml` | [tutoriel Backrest](backrest/README.md) : profil `app-backrest`, volumes, instance de sauvegarde | LXD, mise, ni instances `backrest` et `app`, ni volumes `backups` et `app-data`, ni profil `app-backrest` |
+| `backrest/restore.yaml` | [tutoriel Backrest](backrest/README.md) : restic en ligne de commande, restauration d'un fichier | LXD, mise |
## Enregistrer une démo
@@ -35,13 +37,19 @@ dans le dépôt) ; leur épilogue masqué remet le fichier du dépôt dans son
d'origine et supprime le profil. Ces scénarios refusent de démarrer si ce
profil est déjà installé.
-Les scénarios d'un tutoriel sont rangés dans un sous-dossier (`docker/`), avec
-leur propre préambule `setup.sh` : il crée ou vérifie ce dont le scénario a
+Les scénarios d'un tutoriel sont rangés dans un sous-dossier (`docker/`,
+`backrest/`), avec leur propre préambule `setup.sh` (fonctions communes dans
+`lib.sh`) : il crée ou vérifie ce dont le scénario a
besoin (instance, profil, clone du dépôt dans un dossier temporaire) et son
épilogue supprime ce que la démo a créé. Ces scénarios laissent le shell
afficher lui-même son prompt (`prompt: ""` côté autocast), pour que le shell
root de l'instance ouvert par `lxc shell` garde le sien.
+Les captures d'écran d'une interface web (`backrest/*.png`) sont produites par
+`backrest/screenshots.sh` : une instance Debian avec Chromium, pilotée par
+Playwright (`screenshots.mjs`), remplit les formulaires de l'interface ; tout
+est supprimé à la fin.
+
`castfix.py` retouche chaque enregistrement : il remet le prompt du shell que
autocast efface (au début et après un `!Clear`) et accélère les points de
progression de `cloud-init status --wait`.
diff --git a/demo/backrest/README.en.md b/demo/backrest/README.en.md
new file mode 100644
index 0000000..5f58dde
--- /dev/null
+++ b/demo/backrest/README.en.md
@@ -0,0 +1,256 @@
+# Back up your LXD instances with Backrest
+
+🇫🇷 [Lire en français](README.md)
+
+Your LXD instances are running, their data lives in volumes… what about
+backups? [restic](https://restic.net) is a great backup tool: deduplicated,
+encrypted, able to write to a local disk, an SFTP server or S3 storage.
+[Backrest](https://github.com/garethgeorge/backrest) adds a web UI on top of
+it: scheduling, retention, history and snapshot browsing, restore in a few
+clicks.
+
+This tutorial sets up a dedicated **backup instance**. It reads the data of
+another instance through a volume mounted **read-only**, and backs it up to a
+restic repository stored on a separate volume. The application has nothing to
+install, and the backup instance cannot damage what it backs up.
+
+```mermaid
+flowchart LR
+ app["app instance"] -- "read/write
/srv/app" --> data[("app-data volume
data to protect")]
+ backrest["backrest instance
Backrest + restic"] -- "read-only
/backup/app-data" --> data
+ backrest -- "write
/backups" --> backups[("backups volume
restic repository")]
+```
+
+
+
+▶ [asciinema recording](install.cast)
+
+## What you need
+
+The same prerequisites as the [Docker tutorial](../docker/README.en.md#what-you-need):
+
+- **LXD** installed and initialized (`lxc list` answers without error);
+- **[mise](https://mise.jdx.dev)**, and this repository cloned and trusted
+ (`mise trust`), see [Get the repository](../docker/README.en.md#1-get-the-repository);
+- **internet access** from the instances (Ubuntu packages, GitHub to download
+ Backrest and restic);
+- a **browser** that reaches the instances (on the host, that is the case by
+ default: the `lxdbr0` bridge is routed);
+- room on a storage pool for the backup repository.
+
+From here on, the data to protect is that of an `app` instance, in an
+`app-data` volume mounted on `/srv/app`. Replace it with yours. To follow the
+tutorial as is, create it:
+
+```shell
+lxc storage volume create default app-data size=5GiB
+lxc launch ubuntu:lts app
+lxc storage volume attach default app-data app /srv/app
+lxc exec app -- sh -c 'echo "Hello from app" > /srv/app/notes.txt'
+```
+
+## 1. The `app-backrest` profile
+
+```shell
+mise run show app-backrest
+```
+
+The profile only holds cloud-init:
+
+- a `backrest` systemd service, listening on port **9898** of the instance,
+ with its configuration in `/etc/backrest/config.json` and its data in
+ `/var/lib/backrest`;
+- at first boot, the download of the latest Backrest release from GitHub, then
+ the start of the service;
+- Backrest downloads by itself the restic version it needs, and the profile
+ makes it available on the command line (`/usr/local/bin/restic`) for
+ restores and manual checks.
+
+The service runs as `root` in the instance, to read every file of the mounted
+volumes, whoever owns them. As the instance is unprivileged, that root has no
+rights on the host.
+
+```shell
+mise run install app-backrest
+```
+
+## 2. The volumes
+
+The restic repository has its own volume: it outlives the backup instance, and
+can live on another pool, ideally another disk than the data.
+
+```shell
+lxc storage volume create default backups size=20GiB
+```
+
+`lxc storage volume list` shows the volumes and how many instances use them:
+
+```shell
+lxc storage volume list default type=custom --columns nu
+```
+
+## 3. The backup instance
+
+```shell
+lxc launch ubuntu:lts backrest --profile default --profile app-backrest
+lxc config device add backrest backups disk pool=default source=backups path=/backups
+lxc config device add backrest app-data disk pool=default source=app-data path=/backup/app-data readonly=true
+```
+
+- `backups` is mounted read/write on `/backups`: the restic repository will
+ live there;
+- `app-data` is mounted **read-only** (`readonly=true`) on `/backup/app-data`.
+ A filesystem volume can be attached to several instances at once: `app`
+ keeps writing to it, `backrest` reads it.
+
+Devices are hot-plugged, no need to restart the instance. Wait for the end of
+the installation, then check the service:
+
+```shell
+lxc exec backrest -- cloud-init status --wait --long
+lxc exec backrest -- systemctl is-active backrest
+lxc list backrest --columns ns4
+```
+
+The web UI answers on `http://:9898`.
+
+> [!TIP]
+> The read-only mounts of this repository follow this pattern:
+> `volume-gitea-data-ro` and `volume-nextcloud-data-ro` mount the Gitea and
+> Nextcloud data volumes under `/backup/`. For your own applications, one
+> profile per backed up volume saves typing these commands. As for the
+> `docker-volume-data` profile of the Docker tutorial, adapt the pool to your
+> setup ([see how](../docker/README.en.md#adapt-an-installed-profile-to-your-needs)).
+
+## 4. Configure Backrest
+
+Everything happens in the web UI.
+
+### First run
+
+Backrest asks for an **instance ID** (it shows in the snapshots and cannot be
+changed afterwards) and an administrator account. Disabling authentication is
+possible, but not advised as soon as the UI is reachable from the network.
+
+
+
+### The repository
+
+**Add Repo**: a name (`local`), the repository URI (`/backups/restic`, on the
+`backups` volume) and a password. **The password encrypts the repository:
+without it, the backups cannot be read.** Keep a copy of it outside the
+instance.
+
+Backrest initializes the restic repository on submit. The next tabs schedule
+the repository maintenance: `prune` (reclaim the space of forgotten snapshots)
+and `check` (verify its integrity).
+
+
+
+The URI can also point to remote storage (`s3:…`, `sftp:…`, `rclone:…`): the
+best protection against losing the host disk.
+
+### The backup plan
+
+**Add Plan**: a name (`app-data`), the repository and the path(s) to back up
+(`/backup/app-data`)…
+
+
+
+… the schedule (here every day at 3am, cron expression `0 3 * * *`) and the
+retention: how many snapshots to keep per hour, day, month…
+
+
+
+### First backup
+
+On the plan page, **Backup Now** runs a backup without waiting for the
+schedule. The history shows every operation, the next scheduled backup and the
+details of the snapshots:
+
+
+
+The **Snapshot Browser** walks through the content of a snapshot. The `…` menu
+of each file or directory restores it, or downloads it.
+
+
+
+## 5. restic on the command line, and restoring a file
+
+
+
+▶ [asciinema recording](restore.cast)
+
+restic is available in the backup instance, next to Backrest. Backrest
+snapshots are regular restic snapshots, tagged with the plan name:
+
+```shell
+lxc shell backrest
+```
+
+```shell
+export RESTIC_REPOSITORY=/backups/restic RESTIC_PASSWORD=
+restic snapshots # list of snapshots
+restic ls latest /backup/app-data --recursive # content of the latest
+restic stats latest # size
+exit
+```
+
+To put a lost file back in the `app` instance, `restic dump` writes the file
+taken from a snapshot to its standard output, and `lxc file push` drops it in
+the instance:
+
+```shell
+lxc exec backrest --env RESTIC_PASSWORD= -- \
+ restic --repo /backups/restic dump latest /backup/app-data/notes.txt \
+ | lxc file push --uid 0 --gid 0 --mode 0644 - app/srv/app/notes.txt
+```
+
+As the `app-data` volume is read-only for Backrest, it cannot restore in place.
+To restore a whole directory, restore it into a directory of the backup
+instance (from the UI: *Restore to path*, or
+`restic restore latest --target /backups/restore`), then transfer it, or
+attach the volume read/write for the time of the restore.
+
+## Going further
+
+- **Reach the UI from the network.** A `proxy` device publishes port 9898 on
+ the host:
+
+ ```shell
+ lxc config device add backrest web proxy listen=tcp:0.0.0.0:9898 connect=tcp:127.0.0.1:9898
+ ```
+- **Protect the repository too.** The `backups` volume can have its own LXD
+ snapshots (`snapshots.schedule`, see the
+ [Docker tutorial](../docker/README.en.md#keep-docker-data-in-a-volume-with-automatic-snapshots)),
+ and a second plan can back up the same data to a remote repository (S3,
+ SFTP…).
+- **Back up other instances.** One read-only device per volume, one plan per
+ volume: a single backup instance is enough for a whole host.
+- **Clean up.**
+
+ ```shell
+ lxc delete --force backrest app
+ lxc storage volume delete default backups # the backup repository!
+ lxc storage volume delete default app-data
+ lxc profile delete app-backrest
+ ```
+
+## Replaying the demos and screenshots
+
+The animations of this page are recorded from the `install.yaml` and
+`restore.yaml` scenarios (see [how the demos are made](../README.en.md)), the
+UI screenshots with `screenshots.sh`: a Debian instance with Chromium, driven
+by [Playwright](https://playwright.dev) (`screenshots.mjs`), fills in the
+forms as described above.
+
+```shell
+MISE_ENV=demo mise run demo backrest/install
+MISE_ENV=demo mise run demo backrest/restore
+demo/backrest/screenshots.sh
+```
+
+They create the `backrest` and `app` instances, the `backups` and `app-data`
+volumes and the `app-backrest` profile, then remove them at the end.
+`restore.yaml` configures Backrest through its configuration file rather than
+the UI. In the animation, the cloud-init wait is sped up.
diff --git a/demo/backrest/README.md b/demo/backrest/README.md
new file mode 100644
index 0000000..1852080
--- /dev/null
+++ b/demo/backrest/README.md
@@ -0,0 +1,265 @@
+# Sauvegarder ses instances LXD avec Backrest
+
+🇬🇧 [Read in English](README.en.md)
+
+Vos instances LXD tournent, leurs données vivent dans des volumes… et les
+sauvegardes ? [restic](https://restic.net) est un excellent outil de
+sauvegarde : dédupliqué, chiffré, capable d'écrire sur un disque local, un
+serveur SFTP ou un stockage S3. [Backrest](https://github.com/garethgeorge/backrest)
+lui ajoute une interface web : planification, rétention, historique et
+navigation dans les snapshots, restauration en quelques clics.
+
+Ce tutoriel met en place une **instance de sauvegarde** dédiée. Elle lit les
+données d'une autre instance à travers un volume monté **en lecture seule** et
+les sauvegarde dans un dépôt restic posé sur un volume à part. L'application
+n'a rien à installer, et l'instance de sauvegarde ne peut pas abîmer ce
+qu'elle sauvegarde.
+
+```mermaid
+flowchart LR
+ app["instance app"] -- "lecture/écriture
/srv/app" --> data[("volume app-data
données à protéger")]
+ backrest["instance backrest
Backrest + restic"] -- "lecture seule
/backup/app-data" --> data
+ backrest -- "écriture
/backups" --> backups[("volume backups
dépôt restic")]
+```
+
+
+
+▶ [Enregistrement asciinema](install.cast)
+
+## Ce qu'il vous faut
+
+Les mêmes prérequis que pour le [tutoriel Docker](../docker/README.md#ce-quil-vous-faut) :
+
+- **LXD** installé et initialisé (`lxc list` répond sans erreur) ;
+- **[mise](https://mise.jdx.dev)** et ce dépôt cloné et approuvé
+ (`mise trust`), voir [Récupérer le dépôt](../docker/README.md#1-récupérer-le-dépôt) ;
+- un **accès à internet** depuis les instances (paquets Ubuntu, GitHub pour
+ télécharger Backrest et restic) ;
+- un **navigateur** qui atteint les instances (sur la machine hôte, c'est le
+ cas par défaut : le bridge `lxdbr0` est routé) ;
+- de la place sur un pool de stockage pour le dépôt de sauvegarde.
+
+Dans la suite, les données à protéger sont celles d'une instance `app`, dans
+un volume `app-data` monté sur `/srv/app`. Remplacez-les par les vôtres. Pour
+suivre le tutoriel à l'identique, créez-les :
+
+```shell
+lxc storage volume create default app-data size=5GiB
+lxc launch ubuntu:lts app
+lxc storage volume attach default app-data app /srv/app
+lxc exec app -- sh -c 'echo "Hello from app" > /srv/app/notes.txt'
+```
+
+## 1. Le profil `app-backrest`
+
+```shell
+mise run show app-backrest
+```
+
+Le profil ne contient que du cloud-init :
+
+- un service systemd `backrest`, qui écoute sur le port **9898** de
+ l'instance, garde sa configuration dans `/etc/backrest/config.json` et ses
+ données dans `/var/lib/backrest` ;
+- au premier démarrage, le téléchargement de la dernière version de Backrest
+ depuis GitHub, puis le démarrage du service ;
+- Backrest télécharge lui-même la version de restic dont il a besoin, et le
+ profil la rend disponible en ligne de commande (`/usr/local/bin/restic`) pour
+ les restaurations et les vérifications à la main.
+
+Le service tourne en `root` dans l'instance, pour lire tous les fichiers des
+volumes montés, quels que soient leurs propriétaires. Comme l'instance n'est
+pas privilégiée, ce root n'a aucun droit sur l'hôte.
+
+```shell
+mise run install app-backrest
+```
+
+## 2. Les volumes
+
+Le dépôt restic a son propre volume : il survit à l'instance de sauvegarde, et
+on peut le placer sur un autre pool, idéalement un autre disque que les
+données.
+
+```shell
+lxc storage volume create default backups size=20GiB
+```
+
+`lxc storage volume list` montre les volumes et le nombre d'instances qui les
+utilisent :
+
+```shell
+lxc storage volume list default type=custom --columns nu
+```
+
+## 3. L'instance de sauvegarde
+
+```shell
+lxc launch ubuntu:lts backrest --profile default --profile app-backrest
+lxc config device add backrest backups disk pool=default source=backups path=/backups
+lxc config device add backrest app-data disk pool=default source=app-data path=/backup/app-data readonly=true
+```
+
+- `backups` est monté en lecture/écriture sur `/backups` : c'est là que vivra
+ le dépôt restic ;
+- `app-data` est monté **en lecture seule** (`readonly=true`) sur
+ `/backup/app-data`. Un volume de type système de fichiers peut être attaché
+ à plusieurs instances à la fois : `app` continue d'y écrire, `backrest` le
+ lit.
+
+Les devices s'ajoutent à chaud, pas besoin de redémarrer l'instance. On attend
+la fin de l'installation, puis on vérifie le service :
+
+```shell
+lxc exec backrest -- cloud-init status --wait --long
+lxc exec backrest -- systemctl is-active backrest
+lxc list backrest --columns ns4
+```
+
+L'interface web répond sur `http://:9898`.
+
+> [!TIP]
+> Les montages en lecture seule de ce dépôt suivent ce modèle :
+> `volume-gitea-data-ro` et `volume-nextcloud-data-ro` montent les volumes de
+> données de Gitea et Nextcloud sous `/backup/`. Pour vos propres
+> applications, un profil par volume sauvegardé évite de retaper ces
+> commandes. Comme pour le profil `docker-volume-data` du tutoriel Docker,
+> adaptez le pool à votre installation
+> ([voir comment](../docker/README.md#adapter-un-profil-installé-à-son-besoin)).
+
+## 4. Configurer Backrest
+
+Tout se passe dans l'interface web.
+
+### Premier démarrage
+
+Backrest demande un **identifiant d'instance** (il apparaît dans les snapshots
+et ne se change plus ensuite) et un compte administrateur. Désactiver
+l'authentification est possible, mais déconseillé dès que l'interface est
+joignable depuis le réseau.
+
+
+
+### Le dépôt
+
+**Add Repo** : un nom (`local`), l'URI du dépôt (`/backups/restic`, sur le
+volume `backups`) et un mot de passe. **Le mot de passe chiffre le dépôt : sans
+lui, les sauvegardes sont illisibles.** Gardez-en une copie ailleurs que dans
+l'instance.
+
+Backrest initialise le dépôt restic à la validation. Les onglets suivants
+programment la maintenance du dépôt : `prune` (récupérer la place des
+snapshots oubliés) et `check` (vérifier son intégrité).
+
+
+
+L'URI peut aussi désigner un stockage distant (`s3:…`, `sftp:…`, `rclone:…`) :
+c'est la meilleure protection contre la perte du disque de l'hôte.
+
+### Le plan de sauvegarde
+
+**Add Plan** : un nom (`app-data`), le dépôt et le ou les chemins à
+sauvegarder (`/backup/app-data`)…
+
+
+
+… la planification (ici, tous les jours à 3 h, expression cron `0 3 * * *`) et
+la rétention : combien de snapshots garder par heure, jour, mois…
+
+
+
+### Première sauvegarde
+
+Sur la page du plan, **Backup Now** lance une sauvegarde sans attendre la
+planification. L'historique montre chaque opération, la prochaine sauvegarde
+programmée et le détail des snapshots :
+
+
+
+Le **Snapshot Browser** parcourt le contenu d'un snapshot. Le menu `…` de
+chaque fichier ou dossier permet de le restaurer, ou de le télécharger.
+
+
+
+## 5. restic en ligne de commande, et restaurer un fichier
+
+
+
+▶ [Enregistrement asciinema](restore.cast)
+
+restic est disponible dans l'instance de sauvegarde, à côté de Backrest. Les
+snapshots de Backrest sont des snapshots restic ordinaires, étiquetés avec le
+nom du plan :
+
+```shell
+lxc shell backrest
+```
+
+```shell
+export RESTIC_REPOSITORY=/backups/restic RESTIC_PASSWORD=
+restic snapshots # liste des snapshots
+restic ls latest /backup/app-data --recursive # contenu du dernier
+restic stats latest # taille
+exit
+```
+
+Pour remettre un fichier perdu en place dans l'instance `app`, `restic dump`
+écrit le fichier tiré d'un snapshot sur sa sortie standard, et
+`lxc file push` le dépose dans l'instance :
+
+```shell
+lxc exec backrest --env RESTIC_PASSWORD= -- \
+ restic --repo /backups/restic dump latest /backup/app-data/notes.txt \
+ | lxc file push --uid 0 --gid 0 --mode 0644 - app/srv/app/notes.txt
+```
+
+Comme le volume `app-data` est en lecture seule pour Backrest, il ne peut pas
+restaurer directement à sa place. Pour restaurer un dossier entier, on
+restaure dans un dossier de l'instance de sauvegarde (depuis l'interface :
+*Restore to path*, ou `restic restore latest --target /backups/restore`), puis
+on le transfère, ou on attache le volume en écriture le temps de la
+restauration.
+
+## Pour aller plus loin
+
+- **Accéder à l'interface depuis le réseau.** Un device `proxy` publie le port
+ 9898 sur l'hôte :
+
+ ```shell
+ lxc config device add backrest web proxy listen=tcp:0.0.0.0:9898 connect=tcp:127.0.0.1:9898
+ ```
+- **Protéger aussi le dépôt.** Le volume `backups` peut avoir ses propres
+ snapshots LXD (`snapshots.schedule`, voir le
+ [tutoriel Docker](../docker/README.md#garder-les-données-docker-dans-un-volume-avec-des-snapshots-automatiques)),
+ et un second plan peut sauvegarder les mêmes données vers un dépôt distant
+ (S3, SFTP…).
+- **Sauvegarder d'autres instances.** Un device en lecture seule par volume,
+ un plan par volume : une seule instance de sauvegarde suffit pour tout un
+ hôte.
+- **Faire le ménage.**
+
+ ```shell
+ lxc delete --force backrest app
+ lxc storage volume delete default backups # le dépôt de sauvegarde !
+ lxc storage volume delete default app-data
+ lxc profile delete app-backrest
+ ```
+
+## Rejouer les démos et les captures
+
+Les animations de cette page sont enregistrées à partir des scénarios
+`install.yaml` et `restore.yaml` (voir [comment sont produites les démos](../README.md)),
+les captures de l'interface avec `screenshots.sh` : une instance Debian avec
+Chromium, pilotée par [Playwright](https://playwright.dev) (`screenshots.mjs`),
+remplit les formulaires comme décrit plus haut.
+
+```shell
+MISE_ENV=demo mise run demo backrest/install
+MISE_ENV=demo mise run demo backrest/restore
+demo/backrest/screenshots.sh
+```
+
+Ils créent les instances `backrest` et `app`, les volumes `backups` et
+`app-data` et le profil `app-backrest`, puis les suppriment à la fin.
+`restore.yaml` configure Backrest par son fichier de configuration plutôt que
+par l'interface. Dans l'animation, l'attente de cloud-init est accélérée.
diff --git a/demo/backrest/backup.png b/demo/backrest/backup.png
new file mode 100644
index 0000000..2b96f31
Binary files /dev/null and b/demo/backrest/backup.png differ
diff --git a/demo/backrest/install.cast b/demo/backrest/install.cast
new file mode 100644
index 0000000..eb6e397
--- /dev/null
+++ b/demo/backrest/install.cast
@@ -0,0 +1,1147 @@
+{"version": 2, "width": 156, "height": 50, "timestamp": 1795291201, "duration": 67.051563, "env": {"PS1": "\\[\\e[1;34m\\]lxd\\[\\e[0m\\] > AUTOCAST_PROMPT", "TERM": "xterm-256color", "SHELL": "/usr/bin/bash", "PROMPT_COMMAND": "bind 'set enable-bracketed-paste off'"}}
+[0.0, "o", "\u001b[1;34mlxd\u001b[0m > "]
+[0.0, "o", ""]
+[0.0, "m", "Profile"]
+[0.035, "o", "#"]
+[0.07, "o", " "]
+[0.105, "o", "T"]
+[0.14, "o", "h"]
+[0.175, "o", "e"]
+[0.21, "o", " "]
+[0.245, "o", "B"]
+[0.28, "o", "a"]
+[0.315, "o", "c"]
+[0.35, "o", "k"]
+[0.385, "o", "r"]
+[0.42, "o", "e"]
+[0.455, "o", "s"]
+[0.49, "o", "t"]
+[0.525, "o", " "]
+[0.56, "o", "p"]
+[0.595, "o", "r"]
+[0.63, "o", "o"]
+[0.665, "o", "f"]
+[0.7, "o", "i"]
+[0.735, "o", "l"]
+[0.77, "o", "e"]
+[0.805, "o", ":"]
+[0.84, "o", " "]
+[0.875, "o", "a"]
+[0.91, "o", " "]
+[0.945, "o", "s"]
+[0.98, "o", "y"]
+[1.015, "o", "s"]
+[1.05, "o", "t"]
+[1.085, "o", "e"]
+[1.12, "o", "m"]
+[1.155, "o", "d"]
+[1.19, "o", " "]
+[1.225, "o", "s"]
+[1.26, "o", "e"]
+[1.295, "o", "r"]
+[1.33, "o", "v"]
+[1.365, "o", "i"]
+[1.4, "o", "c"]
+[1.435, "o", "e"]
+[1.47, "o", ","]
+[1.505, "o", " "]
+[1.54, "o", "B"]
+[1.575, "o", "a"]
+[1.61, "o", "c"]
+[1.645, "o", "k"]
+[1.68, "o", "r"]
+[1.715, "o", "e"]
+[1.75, "o", "s"]
+[1.785, "o", "t"]
+[1.82, "o", " "]
+[1.855, "o", "a"]
+[1.89, "o", "n"]
+[1.925, "o", "d"]
+[1.96, "o", " "]
+[1.995, "o", "r"]
+[2.03, "o", "e"]
+[2.065, "o", "s"]
+[2.1, "o", "t"]
+[2.135, "o", "i"]
+[2.17, "o", "c"]
+[2.205, "o", " "]
+[2.24, "o", "d"]
+[2.275, "o", "o"]
+[2.31, "o", "w"]
+[2.345, "o", "n"]
+[2.38, "o", "l"]
+[2.415, "o", "o"]
+[2.45, "o", "a"]
+[2.485, "o", "d"]
+[2.52, "o", "e"]
+[2.555, "o", "d"]
+[2.59, "o", " "]
+[2.625, "o", "a"]
+[2.66, "o", "t"]
+[2.695, "o", " "]
+[2.73, "o", "f"]
+[2.765, "o", "i"]
+[2.8, "o", "r"]
+[2.835, "o", "s"]
+[2.87, "o", "t"]
+[2.905, "o", " "]
+[2.94, "o", "b"]
+[2.975, "o", "o"]
+[3.01, "o", "o"]
+[3.045, "o", "t"]
+[3.08, "o", "\r\n"]
+[3.122933, "o", "\u001b[1;34mlxd\u001b[0m > "]
+[3.122934, "o", ""]
+[3.157934, "o", "m"]
+[3.192934, "o", "i"]
+[3.227934, "o", "s"]
+[3.262934, "o", "e"]
+[3.297934, "o", " "]
+[3.332934, "o", "r"]
+[3.367934, "o", "u"]
+[3.402934, "o", "n"]
+[3.437934, "o", " "]
+[3.472934, "o", "s"]
+[3.507934, "o", "h"]
+[3.542934, "o", "o"]
+[3.577934, "o", "w"]
+[3.612934, "o", " "]
+[3.647934, "o", "a"]
+[3.682934, "o", "p"]
+[3.717934, "o", "p"]
+[3.752934, "o", "-"]
+[3.787934, "o", "b"]
+[3.822934, "o", "a"]
+[3.857934, "o", "c"]
+[3.892934, "o", "k"]
+[3.927934, "o", "r"]
+[3.962934, "o", "e"]
+[3.997934, "o", "s"]
+[4.032934, "o", "t"]
+[4.067934, "o", "\r\n"]
+[5.320574, "o", "\u001b]10;?\u0007\u001b]11;?\u0007\u001b[c"]
+[6.32389, "o", "\u001b[38;5;246m─────┬──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────\u001b[0m\r\n \u001b[38;5;246m│ \u001b[0mFile: \u001b[1mprofiles/applications/app-backrest.profile.yaml\u001b[0m\r\n\u001b[38;5;246m─────┼──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────\u001b[0m\r\n"]
+[6.324413, "o", "\u001b[38;5;246m 1\u001b[0m \u001b[38;5;246m│\u001b[0m \u001b[38;5;203mname\u001b[0m\u001b[38;5;231m:\u001b[0m\u001b[38;5;231m \u001b[0m\u001b[38;5;186mapp-backrest\u001b[0m\r\n"]
+[6.32452, "o", "\u001b[38;5;246m 2\u001b[0m \u001b[38;5;246m│\u001b[0m \u001b[38;5;203mdescription\u001b[0m\u001b[38;5;231m:\u001b[0m\u001b[38;5;231m \u001b[0m\u001b[38;5;186mInstall backrest and its restic (web UI on port 9898)\u001b[0m\r\n"]
+[6.324576, "o", "\u001b[38;5;246m 3\u001b[0m \u001b[38;5;246m│\u001b[0m \u001b[38;5;203mconfig\u001b[0m\u001b[38;5;231m:\u001b[0m\r\n"]
+[6.324641, "o", "\u001b[38;5;246m 4\u001b[0m \u001b[38;5;246m│\u001b[0m \u001b[38;5;231m \u001b[0m\u001b[38;5;203mcloud-init.vendor-data\u001b[0m\u001b[38;5;231m:\u001b[0m\u001b[38;5;231m \u001b[0m\u001b[38;5;203m|\u001b[0m\r\n"]
+[6.324702, "o", "\u001b[38;5;246m 5\u001b[0m \u001b[38;5;246m│\u001b[0m \u001b[38;5;186m #cloud-config\u001b[0m\r\n\u001b[38;5;246m 6\u001b[0m \u001b[38;5;246m│\u001b[0m \u001b[38;5;186m package_update: true\u001b[0m\r\n\u001b[38;5;246m 7\u001b[0m \u001b[38;5;246m│\u001b[0m \u001b[38;5;186m package_upgrade: true\u001b[0m\r\n\u001b[38;5;246m 8\u001b[0m \u001b[38;5;246m│\u001b[0m \u001b[38;5;186m timezone: Europe/Paris\u001b[0m\r\n\u001b[38;5;246m 9\u001b[0m \u001b[38;5;246m│\u001b[0m \u001b[38;5;186m locale: fr_FR.UTF-8\u001b[0m\r\n\u001b[38;5;246m 10\u001b[0m \u001b[38;5;246m│\u001b[0m \u001b[38;5;186m packages:\u001b[0m\r\n"]
+[6.324711, "o", "\u001b[38;5;246m 11\u001b[0m \u001b[38;5;246m│\u001b[0m \u001b[38;5;186m - curl\u001b[0m\r\n"]
+[6.324715, "o", "\u001b[38;5;246m 12\u001b[0m \u001b[38;5;246m│\u001b[0m \u001b[38;5;186m write_files:\u001b[0m\r\n"]
+[6.324724, "o", "\u001b[38;5;246m 13\u001b[0m \u001b[38;5;246m│\u001b[0m \u001b[38;5;186m - path: /etc/systemd/system/backrest.service\u001b[0m\r\n"]
+[6.324728, "o", "\u001b[38;5;246m 14\u001b[0m \u001b[38;5;246m│\u001b[0m \u001b[38;5;186m permissions: \"0644\"\u001b[0m\r\n"]
+[6.324743, "o", "\u001b[38;5;246m 15\u001b[0m \u001b[38;5;246m│\u001b[0m \u001b[38;5;186m content: |\u001b[0m\r\n\u001b[38;5;246m 16\u001b[0m \u001b[38;5;246m│\u001b[0m \u001b[38;5;186m [Unit]\u001b[0m\r\n"]
+[6.324748, "o", "\u001b[38;5;246m 17\u001b[0m \u001b[38;5;246m│\u001b[0m \u001b[38;5;186m Description=Backrest (restic web UI)\u001b[0m\r\n"]
+[6.324752, "o", "\u001b[38;5;246m 18\u001b[0m \u001b[38;5;246m│\u001b[0m \u001b[38;5;186m After=network-online.target\u001b[0m\r\n"]
+[6.324779, "o", "\u001b[38;5;246m 19\u001b[0m \u001b[38;5;246m│\u001b[0m \u001b[38;5;186m Wants=network-online.target\u001b[0m\r\n\u001b[38;5;246m 20\u001b[0m \u001b[38;5;246m│\u001b[0m \r\n\u001b[38;5;246m 21\u001b[0m \u001b[38;5;246m│\u001b[0m \u001b[38;5;186m [Service]\u001b[0m\r\n\u001b[38;5;246m 22\u001b[0m \u001b[38;5;246m│\u001b[0m \u001b[38;5;186m Type=simple\u001b[0m\r\n"]
+[6.324793, "o", "\u001b[38;5;246m 23\u001b[0m \u001b[38;5;246m│\u001b[0m \u001b[38;5;186m # root : lecture de tous les fichiers des volumes montés en lecture seule\u001b[0m\r\n\u001b[38;5;246m 24\u001b[0m \u001b[38;5;246m│\u001b[0m \u001b[38;5;186m User=root\u001b[0m\r\n"]
+[6.324797, "o", "\u001b[38;5;246m 25\u001b[0m \u001b[38;5;246m│\u001b[0m \u001b[38;5;186m ExecStart=/usr/local/bin/backrest\u001b[0m\r\n"]
+[6.324808, "o", "\u001b[38;5;246m 26\u001b[0m \u001b[38;5;246m│\u001b[0m \u001b[38;5;186m Environment=\"BACKREST_PORT=0.0.0.0:9898\"\u001b[0m\r\n"]
+[6.324812, "o", "\u001b[38;5;246m 27\u001b[0m \u001b[38;5;246m│\u001b[0m \u001b[38;5;186m Environment=\"BACKREST_CONFIG=/etc/backrest/config.json\"\u001b[0m\r\n"]
+[6.32483, "o", "\u001b[38;5;246m 28\u001b[0m \u001b[38;5;246m│\u001b[0m \u001b[38;5;186m Environment=\"BACKREST_DATA=/var/lib/backrest\"\u001b[0m\r\n\u001b[38;5;246m 29\u001b[0m \u001b[38;5;246m│\u001b[0m \u001b[38;5;186m Restart=on-failure\u001b[0m\r\n\u001b[38;5;246m 30\u001b[0m \u001b[38;5;246m│\u001b[0m \r\n"]
+[6.324839, "o", "\u001b[38;5;246m 31\u001b[0m \u001b[38;5;246m│\u001b[0m \u001b[38;5;186m [Install]\u001b[0m\r\n"]
+[6.324866, "o", "\u001b[38;5;246m 32\u001b[0m \u001b[38;5;246m│\u001b[0m \u001b[38;5;186m WantedBy=multi-user.target\u001b[0m\r\n\u001b[38;5;246m 33\u001b[0m \u001b[38;5;246m│\u001b[0m \u001b[38;5;186m runcmd:\u001b[0m\r\n\u001b[38;5;246m 34\u001b[0m \u001b[38;5;246m│\u001b[0m \u001b[38;5;186m - mkdir -p /etc/backrest /var/lib/backrest\u001b[0m\r\n"]
+[6.324898, "o", "\u001b[38;5;246m 35\u001b[0m \u001b[38;5;246m│\u001b[0m \u001b[38;5;186m - curl -fsSL https://github.com/garethgeorge/backrest/releases/latest/download/backrest_Linux_x86_64.tar.gz | tar xz -C /usr/local/bin backrest\u001b[0m\r\n\u001b[38;5;246m 36\u001b[0m \u001b[38;5;246m│\u001b[0m \u001b[38;5;186m - systemctl daemon-reload\u001b[0m\r\n\u001b[38;5;246m 37\u001b[0m \u001b[38;5;246m│\u001b[0m \u001b[38;5;186m - systemctl enable --now backrest\u001b[0m\r\n\u001b[38;5;246m 38\u001b[0m \u001b[38;5;246m│\u001b[0m \u001b[38;5;186m # restic en CLI (restauration, tests) : celui que backrest télécharge et\u001b[0m\r\n"]
+[6.324924, "o", "\u001b[38;5;246m 39\u001b[0m \u001b[38;5;246m│\u001b[0m \u001b[38;5;186m # maintient à la version requise (celui d'Ubuntu est trop ancien pour backrest)\u001b[0m\r\n\u001b[38;5;246m 40\u001b[0m \u001b[38;5;246m│\u001b[0m \u001b[38;5;186m - ln -sf /var/lib/backrest/restic /usr/local/bin/restic\u001b[0m\r\n\u001b[38;5;246m─────┴──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────\u001b[0m\r\n"]
+[6.333287, "o", "\u001b[1;34mlxd\u001b[0m > "]
+[6.333287, "o", ""]
+[11.368287, "o", "m"]
+[11.403287, "o", "i"]
+[11.438287, "o", "s"]
+[11.473287, "o", "e"]
+[11.508287, "o", " "]
+[11.543287, "o", "r"]
+[11.578287, "o", "u"]
+[11.613287, "o", "n"]
+[11.648287, "o", " "]
+[11.683287, "o", "i"]
+[11.718287, "o", "n"]
+[11.753287, "o", "s"]
+[11.788287, "o", "t"]
+[11.823287, "o", "a"]
+[11.858287, "o", "l"]
+[11.893287, "o", "l"]
+[11.928287, "o", " "]
+[11.963287, "o", "a"]
+[11.998287, "o", "p"]
+[12.033287, "o", "p"]
+[12.068287, "o", "-"]
+[12.103287, "o", "b"]
+[12.138287, "o", "a"]
+[12.173287, "o", "c"]
+[12.208287, "o", "k"]
+[12.243287, "o", "r"]
+[12.278287, "o", "e"]
+[12.313287, "o", "s"]
+[12.348287, "o", "t"]
+[12.383287, "o", "\r\n"]
+[12.955823, "o", "\u001b[36m▸\u001b[0m \u001b[1mapp-backrest\u001b[0m : création\r\n"]
+[13.135686, "o", "Profile app-backrest created\r\n"]
+[13.266759, "o", "\u001b[32m✔\u001b[0m \u001b[1mapp-backrest\u001b[0m : à jour (depuis profiles/applications/app-backrest.profile.yaml)\r\n"]
+[13.273425, "o", "\u001b[1;34mlxd\u001b[0m > "]
+[13.273425, "o", ""]
+[15.308425, "o", "\r\u001b[H\u001b[2J\u001b[3J\u001b[1;34mlxd\u001b[0m > "]
+[15.343425, "o", ""]
+[15.343425, "m", "Volumes"]
+[15.378425, "o", "#"]
+[15.413425, "o", " "]
+[15.448425, "o", "T"]
+[15.483425, "o", "h"]
+[15.518425, "o", "e"]
+[15.553425, "o", " "]
+[15.588425, "o", "d"]
+[15.623425, "o", "a"]
+[15.658425, "o", "t"]
+[15.693425, "o", "a"]
+[15.728425, "o", " "]
+[15.763425, "o", "t"]
+[15.798425, "o", "o"]
+[15.833425, "o", " "]
+[15.868425, "o", "p"]
+[15.903425, "o", "r"]
+[15.938425, "o", "o"]
+[15.973425, "o", "t"]
+[16.008425, "o", "e"]
+[16.043425, "o", "c"]
+[16.078425, "o", "t"]
+[16.113425, "o", ":"]
+[16.148425, "o", " "]
+[16.183425, "o", "t"]
+[16.218425, "o", "h"]
+[16.253425, "o", "e"]
+[16.288425, "o", " "]
+[16.323425, "o", "a"]
+[16.358425, "o", "p"]
+[16.393425, "o", "p"]
+[16.428425, "o", "-"]
+[16.463425, "o", "d"]
+[16.498425, "o", "a"]
+[16.533425, "o", "t"]
+[16.568425, "o", "a"]
+[16.603425, "o", " "]
+[16.638425, "o", "v"]
+[16.673425, "o", "o"]
+[16.708425, "o", "l"]
+[16.743425, "o", "u"]
+[16.778425, "o", "m"]
+[16.813425, "o", "e"]
+[16.848425, "o", " "]
+[16.883425, "o", "o"]
+[16.918425, "o", "f"]
+[16.953425, "o", " "]
+[16.988425, "o", "t"]
+[17.023425, "o", "h"]
+[17.058425, "o", "e"]
+[17.093425, "o", " "]
+[17.128425, "o", "a"]
+[17.163425, "o", "p"]
+[17.198425, "o", "p"]
+[17.233425, "o", " "]
+[17.268425, "o", "i"]
+[17.303425, "o", "n"]
+[17.338425, "o", "s"]
+[17.373425, "o", "t"]
+[17.408425, "o", "a"]
+[17.443425, "o", "n"]
+[17.478425, "o", "c"]
+[17.513425, "o", "e"]
+[17.548425, "o", "\r\n"]
+[17.551672, "o", "\u001b[1;34mlxd\u001b[0m > "]
+[17.551673, "o", ""]
+[17.586673, "o", "l"]
+[17.621673, "o", "x"]
+[17.656673, "o", "c"]
+[17.691673, "o", " "]
+[17.726673, "o", "s"]
+[17.761673, "o", "t"]
+[17.796673, "o", "o"]
+[17.831673, "o", "r"]
+[17.866673, "o", "a"]
+[17.901673, "o", "g"]
+[17.936673, "o", "e"]
+[17.971673, "o", " "]
+[18.006673, "o", "v"]
+[18.041673, "o", "o"]
+[18.076673, "o", "l"]
+[18.111673, "o", "u"]
+[18.146673, "o", "m"]
+[18.181673, "o", "e"]
+[18.216673, "o", " "]
+[18.251673, "o", "l"]
+[18.286673, "o", "i"]
+[18.321673, "o", "s"]
+[18.356673, "o", "t"]
+[18.391673, "o", " "]
+[18.426673, "o", "d"]
+[18.461673, "o", "e"]
+[18.496673, "o", "f"]
+[18.531673, "o", "a"]
+[18.566673, "o", "u"]
+[18.601673, "o", "l"]
+[18.636673, "o", "t"]
+[18.671673, "o", " "]
+[18.706673, "o", "t"]
+[18.741673, "o", "y"]
+[18.776673, "o", "p"]
+[18.811673, "o", "e"]
+[18.846673, "o", "="]
+[18.881673, "o", "c"]
+[18.916673, "o", "u"]
+[18.951673, "o", "s"]
+[18.986673, "o", "t"]
+[19.021673, "o", "o"]
+[19.056673, "o", "m"]
+[19.091673, "o", " "]
+[19.126673, "o", "-"]
+[19.161673, "o", "-"]
+[19.196673, "o", "c"]
+[19.231673, "o", "o"]
+[19.266673, "o", "l"]
+[19.301673, "o", "u"]
+[19.336673, "o", "m"]
+[19.371673, "o", "n"]
+[19.406673, "o", "s"]
+[19.441673, "o", " "]
+[19.476673, "o", "n"]
+[19.511673, "o", "u"]
+[19.546673, "o", "\r\n"]
+[19.675387, "o", "+----------+---------+\r\n| NAME | USED BY |\r\n+----------+---------+\r\n| app-data | 1 |\r\n+----------+---------+\r\n"]
+[19.679373, "o", "\u001b[1;34mlxd\u001b[0m > "]
+[19.679374, "o", ""]
+[19.714374, "o", "l"]
+[19.749374, "o", "x"]
+[19.784374, "o", "c"]
+[19.819374, "o", " "]
+[19.854374, "o", "e"]
+[19.889374, "o", "x"]
+[19.924374, "o", "e"]
+[19.959374, "o", "c"]
+[19.994374, "o", " "]
+[20.029374, "o", "a"]
+[20.064374, "o", "p"]
+[20.099374, "o", "p"]
+[20.134374, "o", " "]
+[20.169374, "o", "-"]
+[20.204374, "o", "-"]
+[20.239374, "o", " "]
+[20.274374, "o", "l"]
+[20.309374, "o", "s"]
+[20.344374, "o", " "]
+[20.379374, "o", "/"]
+[20.414374, "o", "s"]
+[20.449374, "o", "r"]
+[20.484374, "o", "v"]
+[20.519374, "o", "/"]
+[20.554374, "o", "a"]
+[20.589374, "o", "p"]
+[20.624374, "o", "p"]
+[20.659374, "o", "\r\n"]
+[20.841444, "o", "documents notes.txt\r\n"]
+[20.852283, "o", "\u001b[1;34mlxd\u001b[0m > "]
+[20.852283, "o", ""]
+[22.887283, "o", "#"]
+[22.922283, "o", " "]
+[22.957283, "o", "A"]
+[22.992283, "o", " "]
+[23.027283, "o", "d"]
+[23.062283, "o", "e"]
+[23.097283, "o", "d"]
+[23.132283, "o", "i"]
+[23.167283, "o", "c"]
+[23.202283, "o", "a"]
+[23.237283, "o", "t"]
+[23.272283, "o", "e"]
+[23.307283, "o", "d"]
+[23.342283, "o", " "]
+[23.377283, "o", "v"]
+[23.412283, "o", "o"]
+[23.447283, "o", "l"]
+[23.482283, "o", "u"]
+[23.517283, "o", "m"]
+[23.552283, "o", "e"]
+[23.587283, "o", " "]
+[23.622283, "o", "f"]
+[23.657283, "o", "o"]
+[23.692283, "o", "r"]
+[23.727283, "o", " "]
+[23.762283, "o", "t"]
+[23.797283, "o", "h"]
+[23.832283, "o", "e"]
+[23.867283, "o", " "]
+[23.902283, "o", "r"]
+[23.937283, "o", "e"]
+[23.972283, "o", "s"]
+[24.007283, "o", "t"]
+[24.042283, "o", "i"]
+[24.077283, "o", "c"]
+[24.112283, "o", " "]
+[24.147283, "o", "r"]
+[24.182283, "o", "e"]
+[24.217283, "o", "p"]
+[24.252283, "o", "o"]
+[24.287283, "o", "s"]
+[24.322283, "o", "i"]
+[24.357283, "o", "t"]
+[24.392283, "o", "o"]
+[24.427283, "o", "r"]
+[24.462283, "o", "y"]
+[24.497283, "o", "\r\n"]
+[24.50071, "o", "\u001b[1;34mlxd\u001b[0m > "]
+[24.50071, "o", ""]
+[24.53571, "o", "l"]
+[24.57071, "o", "x"]
+[24.60571, "o", "c"]
+[24.64071, "o", " "]
+[24.67571, "o", "s"]
+[24.71071, "o", "t"]
+[24.74571, "o", "o"]
+[24.78071, "o", "r"]
+[24.81571, "o", "a"]
+[24.85071, "o", "g"]
+[24.88571, "o", "e"]
+[24.92071, "o", " "]
+[24.95571, "o", "v"]
+[24.99071, "o", "o"]
+[25.02571, "o", "l"]
+[25.06071, "o", "u"]
+[25.09571, "o", "m"]
+[25.13071, "o", "e"]
+[25.16571, "o", " "]
+[25.20071, "o", "c"]
+[25.23571, "o", "r"]
+[25.27071, "o", "e"]
+[25.30571, "o", "a"]
+[25.34071, "o", "t"]
+[25.37571, "o", "e"]
+[25.41071, "o", " "]
+[25.44571, "o", "d"]
+[25.48071, "o", "e"]
+[25.51571, "o", "f"]
+[25.55071, "o", "a"]
+[25.58571, "o", "u"]
+[25.62071, "o", "l"]
+[25.65571, "o", "t"]
+[25.69071, "o", " "]
+[25.72571, "o", "b"]
+[25.76071, "o", "a"]
+[25.79571, "o", "c"]
+[25.83071, "o", "k"]
+[25.86571, "o", "u"]
+[25.90071, "o", "p"]
+[25.93571, "o", "s"]
+[25.97071, "o", " "]
+[26.00571, "o", "s"]
+[26.04071, "o", "i"]
+[26.07571, "o", "z"]
+[26.11071, "o", "e"]
+[26.14571, "o", "="]
+[26.18071, "o", "2"]
+[26.21571, "o", "0"]
+[26.25071, "o", "G"]
+[26.28571, "o", "i"]
+[26.32071, "o", "B"]
+[26.35571, "o", "\r\n"]
+[26.457066, "o", "Storage volume backups created\r\n"]
+[26.464387, "o", "\u001b[1;34mlxd\u001b[0m > "]
+[26.464387, "o", ""]
+[28.499387, "o", "\r\u001b[H\u001b[2J\u001b[3J\u001b[1;34mlxd\u001b[0m > "]
+[28.534387, "o", ""]
+[28.534387, "m", "Launch"]
+[28.569387, "o", "#"]
+[28.604387, "o", " "]
+[28.639387, "o", "T"]
+[28.674387, "o", "h"]
+[28.709387, "o", "e"]
+[28.744387, "o", " "]
+[28.779387, "o", "b"]
+[28.814387, "o", "a"]
+[28.849387, "o", "c"]
+[28.884387, "o", "k"]
+[28.919387, "o", "u"]
+[28.954387, "o", "p"]
+[28.989387, "o", " "]
+[29.024387, "o", "i"]
+[29.059387, "o", "n"]
+[29.094387, "o", "s"]
+[29.129387, "o", "t"]
+[29.164387, "o", "a"]
+[29.199387, "o", "n"]
+[29.234387, "o", "c"]
+[29.269387, "o", "e"]
+[29.304387, "o", ":"]
+[29.339387, "o", " "]
+[29.374387, "o", "t"]
+[29.409387, "o", "h"]
+[29.444387, "o", "e"]
+[29.479387, "o", " "]
+[29.514387, "o", "r"]
+[29.549387, "o", "e"]
+[29.584387, "o", "p"]
+[29.619387, "o", "o"]
+[29.654387, "o", "s"]
+[29.689387, "o", "i"]
+[29.724387, "o", "t"]
+[29.759387, "o", "o"]
+[29.794387, "o", "r"]
+[29.829387, "o", "y"]
+[29.864387, "o", " "]
+[29.899387, "o", "v"]
+[29.934387, "o", "o"]
+[29.969387, "o", "l"]
+[30.004387, "o", "u"]
+[30.039387, "o", "m"]
+[30.074387, "o", "e"]
+[30.109387, "o", ","]
+[30.144387, "o", " "]
+[30.179387, "o", "a"]
+[30.214387, "o", "n"]
+[30.249387, "o", "d"]
+[30.284387, "o", " "]
+[30.319387, "o", "t"]
+[30.354387, "o", "h"]
+[30.389387, "o", "e"]
+[30.424387, "o", " "]
+[30.459387, "o", "d"]
+[30.494387, "o", "a"]
+[30.529387, "o", "t"]
+[30.564387, "o", "a"]
+[30.599387, "o", " "]
+[30.634387, "o", "v"]
+[30.669387, "o", "o"]
+[30.704387, "o", "l"]
+[30.739387, "o", "u"]
+[30.774387, "o", "m"]
+[30.809387, "o", "e"]
+[30.844387, "o", " "]
+[30.879387, "o", "r"]
+[30.914387, "o", "e"]
+[30.949387, "o", "a"]
+[30.984387, "o", "d"]
+[31.019387, "o", "-"]
+[31.054387, "o", "o"]
+[31.089387, "o", "n"]
+[31.124387, "o", "l"]
+[31.159387, "o", "y"]
+[31.194387, "o", "\r\n"]
+[31.19779, "o", "\u001b[1;34mlxd\u001b[0m > "]
+[31.19779, "o", ""]
+[31.23279, "o", "l"]
+[31.26779, "o", "x"]
+[31.30279, "o", "c"]
+[31.33779, "o", " "]
+[31.37279, "o", "l"]
+[31.40779, "o", "a"]
+[31.44279, "o", "u"]
+[31.47779, "o", "n"]
+[31.51279, "o", "c"]
+[31.54779, "o", "h"]
+[31.58279, "o", " "]
+[31.61779, "o", "u"]
+[31.65279, "o", "b"]
+[31.68779, "o", "u"]
+[31.72279, "o", "n"]
+[31.75779, "o", "t"]
+[31.79279, "o", "u"]
+[31.82779, "o", ":"]
+[31.86279, "o", "l"]
+[31.89779, "o", "t"]
+[31.93279, "o", "s"]
+[31.96779, "o", " "]
+[32.00279, "o", "b"]
+[32.03779, "o", "a"]
+[32.07279, "o", "c"]
+[32.10779, "o", "k"]
+[32.14279, "o", "r"]
+[32.17779, "o", "e"]
+[32.21279, "o", "s"]
+[32.24779, "o", "t"]
+[32.28279, "o", " "]
+[32.31779, "o", "-"]
+[32.35279, "o", "-"]
+[32.38779, "o", "p"]
+[32.42279, "o", "r"]
+[32.45779, "o", "o"]
+[32.49279, "o", "f"]
+[32.52779, "o", "i"]
+[32.56279, "o", "l"]
+[32.59779, "o", "e"]
+[32.63279, "o", " "]
+[32.66779, "o", "d"]
+[32.70279, "o", "e"]
+[32.73779, "o", "f"]
+[32.77279, "o", "a"]
+[32.80779, "o", "u"]
+[32.84279, "o", "l"]
+[32.87779, "o", "t"]
+[32.91279, "o", " "]
+[32.94779, "o", "-"]
+[32.98279, "o", "-"]
+[33.01779, "o", "p"]
+[33.05279, "o", "r"]
+[33.08779, "o", "o"]
+[33.12279, "o", "f"]
+[33.15779, "o", "i"]
+[33.19279, "o", "l"]
+[33.22779, "o", "e"]
+[33.26279, "o", " "]
+[33.29779, "o", "a"]
+[33.33279, "o", "p"]
+[33.36779, "o", "p"]
+[33.40279, "o", "-"]
+[33.43779, "o", "b"]
+[33.47279, "o", "a"]
+[33.50779, "o", "c"]
+[33.54279, "o", "k"]
+[33.57779, "o", "r"]
+[33.61279, "o", "e"]
+[33.64779, "o", "s"]
+[33.68279, "o", "t"]
+[33.71779, "o", "\r\n"]
+[33.80452, "o", "Launching backrest\r\n"]
+[34.343521, "o", "\rRetrieving image: Unpacking image: 100% (1.57GB/s)"]
+[39.21277, "o", "\r \rRetrieving image: Unpacking image: 100% (1.57GB/s)"]
+[39.212847, "o", "\r \r"]
+[39.222638, "o", "\u001b[1;34mlxd\u001b[0m > "]
+[39.222639, "o", ""]
+[39.257639, "o", "l"]
+[39.292639, "o", "x"]
+[39.327639, "o", "c"]
+[39.362639, "o", " "]
+[39.397639, "o", "c"]
+[39.432639, "o", "o"]
+[39.467639, "o", "n"]
+[39.502639, "o", "f"]
+[39.537639, "o", "i"]
+[39.572639, "o", "g"]
+[39.607639, "o", " "]
+[39.642639, "o", "d"]
+[39.677639, "o", "e"]
+[39.712639, "o", "v"]
+[39.747639, "o", "i"]
+[39.782639, "o", "c"]
+[39.817639, "o", "e"]
+[39.852639, "o", " "]
+[39.887639, "o", "a"]
+[39.922639, "o", "d"]
+[39.957639, "o", "d"]
+[39.992639, "o", " "]
+[40.027639, "o", "b"]
+[40.062639, "o", "a"]
+[40.097639, "o", "c"]
+[40.132639, "o", "k"]
+[40.167639, "o", "r"]
+[40.202639, "o", "e"]
+[40.237639, "o", "s"]
+[40.272639, "o", "t"]
+[40.307639, "o", " "]
+[40.342639, "o", "b"]
+[40.377639, "o", "a"]
+[40.412639, "o", "c"]
+[40.447639, "o", "k"]
+[40.482639, "o", "u"]
+[40.517639, "o", "p"]
+[40.552639, "o", "s"]
+[40.587639, "o", " "]
+[40.622639, "o", "d"]
+[40.657639, "o", "i"]
+[40.692639, "o", "s"]
+[40.727639, "o", "k"]
+[40.762639, "o", " "]
+[40.797639, "o", "p"]
+[40.832639, "o", "o"]
+[40.867639, "o", "o"]
+[40.902639, "o", "l"]
+[40.937639, "o", "="]
+[40.972639, "o", "d"]
+[41.007639, "o", "e"]
+[41.042639, "o", "f"]
+[41.077639, "o", "a"]
+[41.112639, "o", "u"]
+[41.147639, "o", "l"]
+[41.182639, "o", "t"]
+[41.217639, "o", " "]
+[41.252639, "o", "s"]
+[41.287639, "o", "o"]
+[41.322639, "o", "u"]
+[41.357639, "o", "r"]
+[41.392639, "o", "c"]
+[41.427639, "o", "e"]
+[41.462639, "o", "="]
+[41.497639, "o", "b"]
+[41.532639, "o", "a"]
+[41.567639, "o", "c"]
+[41.602639, "o", "k"]
+[41.637639, "o", "u"]
+[41.672639, "o", "p"]
+[41.707639, "o", "s"]
+[41.742639, "o", " "]
+[41.777639, "o", "p"]
+[41.812639, "o", "a"]
+[41.847639, "o", "t"]
+[41.882639, "o", "h"]
+[41.917639, "o", "="]
+[41.952639, "o", "/"]
+[41.987639, "o", "b"]
+[42.022639, "o", "a"]
+[42.057639, "o", "c"]
+[42.092639, "o", "k"]
+[42.127639, "o", "u"]
+[42.162639, "o", "p"]
+[42.197639, "o", "s"]
+[42.232639, "o", "\r\n"]
+[42.439038, "o", "Device backups added to backrest\r\n"]
+[42.452422, "o", "\u001b[1;34mlxd\u001b[0m > "]
+[42.452423, "o", ""]
+[42.487423, "o", "l"]
+[42.522423, "o", "x"]
+[42.557423, "o", "c"]
+[42.592423, "o", " "]
+[42.627423, "o", "c"]
+[42.662423, "o", "o"]
+[42.697423, "o", "n"]
+[42.732423, "o", "f"]
+[42.767423, "o", "i"]
+[42.802423, "o", "g"]
+[42.837423, "o", " "]
+[42.872423, "o", "d"]
+[42.907423, "o", "e"]
+[42.942423, "o", "v"]
+[42.977423, "o", "i"]
+[43.012423, "o", "c"]
+[43.047423, "o", "e"]
+[43.082423, "o", " "]
+[43.117423, "o", "a"]
+[43.152423, "o", "d"]
+[43.187423, "o", "d"]
+[43.222423, "o", " "]
+[43.257423, "o", "b"]
+[43.292423, "o", "a"]
+[43.327423, "o", "c"]
+[43.362423, "o", "k"]
+[43.397423, "o", "r"]
+[43.432423, "o", "e"]
+[43.467423, "o", "s"]
+[43.502423, "o", "t"]
+[43.537423, "o", " "]
+[43.572423, "o", "a"]
+[43.607423, "o", "p"]
+[43.642423, "o", "p"]
+[43.677423, "o", "-"]
+[43.712423, "o", "d"]
+[43.747423, "o", "a"]
+[43.782423, "o", "t"]
+[43.817423, "o", "a"]
+[43.852423, "o", " "]
+[43.887423, "o", "d"]
+[43.922423, "o", "i"]
+[43.957423, "o", "s"]
+[43.992423, "o", "k"]
+[44.027423, "o", " "]
+[44.062423, "o", "p"]
+[44.097423, "o", "o"]
+[44.132423, "o", "o"]
+[44.167423, "o", "l"]
+[44.202423, "o", "="]
+[44.237423, "o", "d"]
+[44.272423, "o", "e"]
+[44.307423, "o", "f"]
+[44.342423, "o", "a"]
+[44.377423, "o", "u"]
+[44.412423, "o", "l"]
+[44.447423, "o", "t"]
+[44.482423, "o", " "]
+[44.517423, "o", "s"]
+[44.552423, "o", "o"]
+[44.587423, "o", "u"]
+[44.622423, "o", "r"]
+[44.657423, "o", "c"]
+[44.692423, "o", "e"]
+[44.727423, "o", "="]
+[44.762423, "o", "a"]
+[44.797423, "o", "p"]
+[44.832423, "o", "p"]
+[44.867423, "o", "-"]
+[44.902423, "o", "d"]
+[44.937423, "o", "a"]
+[44.972423, "o", "t"]
+[45.007423, "o", "a"]
+[45.042423, "o", " "]
+[45.077423, "o", "p"]
+[45.112423, "o", "a"]
+[45.147423, "o", "t"]
+[45.182423, "o", "h"]
+[45.217423, "o", "="]
+[45.252423, "o", "/"]
+[45.287423, "o", "b"]
+[45.322423, "o", "a"]
+[45.357423, "o", "c"]
+[45.392423, "o", "k"]
+[45.427423, "o", "u"]
+[45.462423, "o", "p"]
+[45.497423, "o", "/"]
+[45.532423, "o", "a"]
+[45.567423, "o", "p"]
+[45.602423, "o", "p"]
+[45.637423, "o", "-"]
+[45.672423, "o", "d"]
+[45.707423, "o", "a"]
+[45.742423, "o", "t"]
+[45.777423, "o", "a"]
+[45.812423, "o", " "]
+[45.847423, "o", "r"]
+[45.882423, "o", "e"]
+[45.917423, "o", "a"]
+[45.952423, "o", "d"]
+[45.987423, "o", "o"]
+[46.022423, "o", "n"]
+[46.057423, "o", "l"]
+[46.092423, "o", "y"]
+[46.127423, "o", "="]
+[46.162423, "o", "t"]
+[46.197423, "o", "r"]
+[46.232423, "o", "u"]
+[46.267423, "o", "e"]
+[46.302423, "o", "\r\n"]
+[46.700976, "o", "Device app-data added to backrest\r\n"]
+[46.720541, "o", "\u001b[1;34mlxd\u001b[0m > "]
+[46.720542, "o", ""]
+[46.755542, "o", "l"]
+[46.790542, "o", "x"]
+[46.825542, "o", "c"]
+[46.860542, "o", " "]
+[46.895542, "o", "e"]
+[46.930542, "o", "x"]
+[46.965542, "o", "e"]
+[47.000542, "o", "c"]
+[47.035542, "o", " "]
+[47.070542, "o", "b"]
+[47.105542, "o", "a"]
+[47.140542, "o", "c"]
+[47.175542, "o", "k"]
+[47.210542, "o", "r"]
+[47.245542, "o", "e"]
+[47.280542, "o", "s"]
+[47.315542, "o", "t"]
+[47.350542, "o", " "]
+[47.385542, "o", "-"]
+[47.420542, "o", "-"]
+[47.455542, "o", " "]
+[47.490542, "o", "c"]
+[47.525542, "o", "l"]
+[47.560542, "o", "o"]
+[47.595542, "o", "u"]
+[47.630542, "o", "d"]
+[47.665542, "o", "-"]
+[47.700542, "o", "i"]
+[47.735542, "o", "n"]
+[47.770542, "o", "i"]
+[47.805542, "o", "t"]
+[47.840542, "o", " "]
+[47.875542, "o", "s"]
+[47.910542, "o", "t"]
+[47.945542, "o", "a"]
+[47.980542, "o", "t"]
+[48.015542, "o", "u"]
+[48.050542, "o", "s"]
+[48.085542, "o", " "]
+[48.120542, "o", "-"]
+[48.155542, "o", "-"]
+[48.190542, "o", "w"]
+[48.225542, "o", "a"]
+[48.260542, "o", "i"]
+[48.295542, "o", "t"]
+[48.330542, "o", " "]
+[48.365542, "o", "-"]
+[48.400542, "o", "-"]
+[48.435542, "o", "l"]
+[48.470542, "o", "o"]
+[48.505542, "o", "n"]
+[48.540542, "o", "g"]
+[48.575542, "o", "\r\n"]
+[48.625542, "o", "."]
+[48.675542, "o", "."]
+[48.725542, "o", "."]
+[48.775542, "o", "."]
+[48.825542, "o", "."]
+[48.875542, "o", "."]
+[48.925542, "o", "."]
+[48.975542, "o", "."]
+[49.025542, "o", "."]
+[49.075542, "o", "."]
+[49.125542, "o", "."]
+[49.175542, "o", "."]
+[49.225542, "o", "."]
+[49.275542, "o", "."]
+[49.325542, "o", "."]
+[49.375542, "o", "."]
+[49.425542, "o", "."]
+[49.475542, "o", "."]
+[49.525542, "o", "."]
+[49.575542, "o", "."]
+[49.625542, "o", "."]
+[49.675542, "o", "."]
+[49.725542, "o", "."]
+[49.775542, "o", "."]
+[49.825542, "o", "."]
+[49.875542, "o", "."]
+[49.925542, "o", "."]
+[49.975542, "o", "."]
+[50.025542, "o", "."]
+[50.075542, "o", "."]
+[50.125542, "o", "."]
+[50.175542, "o", "."]
+[50.225542, "o", "."]
+[50.275542, "o", "."]
+[50.325542, "o", "."]
+[50.375542, "o", "."]
+[50.425542, "o", "."]
+[50.475542, "o", "."]
+[50.525542, "o", "."]
+[50.575542, "o", "."]
+[50.625542, "o", "."]
+[50.675542, "o", "."]
+[50.725542, "o", "."]
+[50.775542, "o", "."]
+[50.825542, "o", "."]
+[50.875542, "o", "."]
+[50.925542, "o", "."]
+[50.975542, "o", "."]
+[51.025542, "o", "."]
+[51.075542, "o", "."]
+[51.125542, "o", "."]
+[51.175542, "o", "."]
+[51.225542, "o", "."]
+[51.275542, "o", "."]
+[51.325542, "o", "."]
+[51.375542, "o", "."]
+[51.425542, "o", "."]
+[51.475542, "o", "."]
+[51.525542, "o", "."]
+[51.575542, "o", "."]
+[51.625542, "o", "."]
+[51.675542, "o", "."]
+[51.725542, "o", "."]
+[51.775542, "o", "."]
+[51.825542, "o", "."]
+[51.875542, "o", "."]
+[51.925542, "o", "."]
+[51.975542, "o", "."]
+[52.025542, "o", "."]
+[52.075542, "o", "."]
+[52.125542, "o", "."]
+[52.175542, "o", "."]
+[52.225542, "o", "."]
+[52.275542, "o", "."]
+[52.325542, "o", "."]
+[52.375542, "o", "."]
+[52.425542, "o", "."]
+[52.475542, "o", "."]
+[52.525542, "o", "."]
+[52.575542, "o", "."]
+[52.625542, "o", "."]
+[52.675542, "o", "."]
+[52.725542, "o", "."]
+[52.775542, "o", "."]
+[52.825542, "o", "."]
+[52.875542, "o", "."]
+[52.925542, "o", "."]
+[52.975542, "o", "."]
+[53.025542, "o", "."]
+[53.075542, "o", "."]
+[53.125542, "o", "."]
+[53.175542, "o", "."]
+[53.225542, "o", "."]
+[53.275542, "o", "."]
+[53.325542, "o", "."]
+[53.375542, "o", "."]
+[53.425542, "o", "."]
+[53.475542, "o", "."]
+[53.525542, "o", "."]
+[53.575542, "o", "."]
+[53.625542, "o", "."]
+[53.675542, "o", "."]
+[53.725542, "o", "."]
+[53.775542, "o", "."]
+[53.825542, "o", "."]
+[53.875542, "o", "."]
+[53.925542, "o", "."]
+[53.975542, "o", "."]
+[54.025542, "o", "."]
+[54.075542, "o", "."]
+[54.125542, "o", "."]
+[54.175542, "o", "."]
+[54.225542, "o", "."]
+[54.275542, "o", "."]
+[54.325542, "o", "."]
+[54.375542, "o", "."]
+[54.425542, "o", "."]
+[54.475542, "o", "."]
+[54.525542, "o", "."]
+[54.575542, "o", "."]
+[54.625542, "o", "."]
+[54.675542, "o", "."]
+[54.725542, "o", "."]
+[54.775542, "o", "."]
+[54.825542, "o", "."]
+[54.875542, "o", "."]
+[54.925542, "o", "."]
+[54.975542, "o", "."]
+[55.025542, "o", "."]
+[55.075542, "o", "."]
+[55.125542, "o", "."]
+[55.175542, "o", "."]
+[55.225542, "o", "."]
+[55.275542, "o", "."]
+[55.325542, "o", "."]
+[55.375542, "o", "."]
+[55.425542, "o", "."]
+[55.475542, "o", "."]
+[55.525542, "o", "."]
+[55.575542, "o", "."]
+[55.625542, "o", "."]
+[55.675542, "o", "."]
+[55.942288, "o", "status: done\r\nextended_status: done\r\nboot_status_code: enabled-by-generator\r\nlast_update: Thu, 01 Jan 1970 00:00:40 +0000\r\ndetail: DataSourceLXD\r\nerrors: []\r\nrecoverable_errors: {}\r\n"]
+[56.060027, "o", "\u001b[1;34mlxd\u001b[0m > "]
+[56.060028, "o", ""]
+[56.095028, "o", "l"]
+[56.130028, "o", "x"]
+[56.165028, "o", "c"]
+[56.200028, "o", " "]
+[56.235028, "o", "e"]
+[56.270028, "o", "x"]
+[56.305028, "o", "e"]
+[56.340028, "o", "c"]
+[56.375028, "o", " "]
+[56.410028, "o", "b"]
+[56.445028, "o", "a"]
+[56.480028, "o", "c"]
+[56.515028, "o", "k"]
+[56.550028, "o", "r"]
+[56.585028, "o", "e"]
+[56.620028, "o", "s"]
+[56.655028, "o", "t"]
+[56.690028, "o", " "]
+[56.725028, "o", "-"]
+[56.760028, "o", "-"]
+[56.795028, "o", " "]
+[56.830028, "o", "s"]
+[56.865028, "o", "y"]
+[56.900028, "o", "s"]
+[56.935028, "o", "t"]
+[56.970028, "o", "e"]
+[57.005028, "o", "m"]
+[57.040028, "o", "c"]
+[57.075028, "o", "t"]
+[57.110028, "o", "l"]
+[57.145028, "o", " "]
+[57.180028, "o", "i"]
+[57.215028, "o", "s"]
+[57.250028, "o", "-"]
+[57.285028, "o", "a"]
+[57.320028, "o", "c"]
+[57.355028, "o", "t"]
+[57.390028, "o", "i"]
+[57.425028, "o", "v"]
+[57.460028, "o", "e"]
+[57.495028, "o", " "]
+[57.530028, "o", "b"]
+[57.565028, "o", "a"]
+[57.600028, "o", "c"]
+[57.635028, "o", "k"]
+[57.670028, "o", "r"]
+[57.705028, "o", "e"]
+[57.740028, "o", "s"]
+[57.775028, "o", "t"]
+[57.810028, "o", "\r\n"]
+[57.980031, "o", "active\r\n"]
+[57.991876, "o", "\u001b[1;34mlxd\u001b[0m > "]
+[57.991894, "o", ""]
+[58.026894, "o", "#"]
+[58.061894, "o", " "]
+[58.096894, "o", "T"]
+[58.131894, "o", "h"]
+[58.166894, "o", "e"]
+[58.201894, "o", " "]
+[58.236894, "o", "w"]
+[58.271894, "o", "e"]
+[58.306894, "o", "b"]
+[58.341894, "o", " "]
+[58.376894, "o", "U"]
+[58.411894, "o", "I"]
+[58.446894, "o", " "]
+[58.481894, "o", "l"]
+[58.516894, "o", "i"]
+[58.551894, "o", "s"]
+[58.586894, "o", "t"]
+[58.621894, "o", "e"]
+[58.656894, "o", "n"]
+[58.691894, "o", "s"]
+[58.726894, "o", " "]
+[58.761894, "o", "o"]
+[58.796894, "o", "n"]
+[58.831894, "o", " "]
+[58.866894, "o", "p"]
+[58.901894, "o", "o"]
+[58.936894, "o", "r"]
+[58.971894, "o", "t"]
+[59.006894, "o", " "]
+[59.041894, "o", "9"]
+[59.076894, "o", "8"]
+[59.111894, "o", "9"]
+[59.146894, "o", "8"]
+[59.181894, "o", " "]
+[59.216894, "o", "o"]
+[59.251894, "o", "f"]
+[59.286894, "o", " "]
+[59.321894, "o", "t"]
+[59.356894, "o", "h"]
+[59.391894, "o", "e"]
+[59.426894, "o", " "]
+[59.461894, "o", "i"]
+[59.496894, "o", "n"]
+[59.531894, "o", "s"]
+[59.566894, "o", "t"]
+[59.601894, "o", "a"]
+[59.636894, "o", "n"]
+[59.671894, "o", "c"]
+[59.706894, "o", "e"]
+[59.741894, "o", "\r\n"]
+[59.746208, "o", "\u001b[1;34mlxd\u001b[0m > "]
+[59.746208, "o", ""]
+[59.781208, "o", "l"]
+[59.816208, "o", "x"]
+[59.851208, "o", "c"]
+[59.886208, "o", " "]
+[59.921208, "o", "l"]
+[59.956208, "o", "i"]
+[59.991208, "o", "s"]
+[60.026208, "o", "t"]
+[60.061208, "o", " "]
+[60.096208, "o", "b"]
+[60.131208, "o", "a"]
+[60.166208, "o", "c"]
+[60.201208, "o", "k"]
+[60.236208, "o", "r"]
+[60.271208, "o", "e"]
+[60.306208, "o", "s"]
+[60.341208, "o", "t"]
+[60.376208, "o", " "]
+[60.411208, "o", "-"]
+[60.446208, "o", "-"]
+[60.481208, "o", "c"]
+[60.516208, "o", "o"]
+[60.551208, "o", "l"]
+[60.586208, "o", "u"]
+[60.621208, "o", "m"]
+[60.656208, "o", "n"]
+[60.691208, "o", "s"]
+[60.726208, "o", " "]
+[60.761208, "o", "n"]
+[60.796208, "o", "s"]
+[60.831208, "o", "4"]
+[60.866208, "o", "\r\n"]
+[61.006169, "o", "+----------+"]
+[61.008318, "o", "---------+----------------------+\r\n| NAME | STATE | IPV4 |\r\n+----------+---------+----------------------+\r\n| backrest | RUNNING | 10.85.247.243 (eth0) |\r\n+----------+---------+----------------------+\r\n"]
+[61.016562, "o", "\u001b[1;34mlxd\u001b[0m > "]
+[61.016563, "o", ""]
+[67.051563, "o", "\r\n"]
diff --git a/demo/backrest/install.gif b/demo/backrest/install.gif
new file mode 100644
index 0000000..37ebf53
Binary files /dev/null and b/demo/backrest/install.gif differ
diff --git a/demo/backrest/install.yaml b/demo/backrest/install.yaml
new file mode 100644
index 0000000..895b6b2
--- /dev/null
+++ b/demo/backrest/install.yaml
@@ -0,0 +1,51 @@
+# Demo: a backup instance with Backrest, reading the data of another instance through a read-only volume
+# (prerequisites: LXD, mise, no instance backrest nor app, no profile app-backrest, no volume backups nor app-data;
+# all created, then removed at the end)
+settings:
+ width: 156
+ height: 50
+ type_speed: 35ms
+ # Empty: the prompts are the shell's own (PS1), so that the instance's root shell keeps its own prompt
+ prompt: ""
+ timeout: 300s
+ # bash without rc files: the real prompt (PS1) is used to detect the end of commands
+ shell:
+ program: bash
+ args: [--norc, --noprofile]
+ prompt: AUTOCAST_PROMPT
+ line_split: " \\"
+ quit_command: exit
+ environment:
+ - {name: PS1, value: "\\[\\e[1;34m\\]lxd\\[\\e[0m\\] > AUTOCAST_PROMPT"}
+ - {name: PROMPT_COMMAND, value: "bind 'set enable-bracketed-paste off'"}
+ - {name: TERM, value: xterm-256color}
+
+instructions:
+ - !Command {command: "source demo/backrest/setup.sh install", hidden: true}
+ - !Marker Profile
+ - !Command {command: "# The Backrest profile: a systemd service, Backrest and restic downloaded at first boot"}
+ - !Command {command: "mise run show app-backrest"}
+ - !Wait 5s
+ - !Command {command: "mise run install app-backrest"}
+ - !Wait 2s
+ - !Clear
+ - !Marker Volumes
+ - !Command {command: "# The data to protect: the app-data volume of the app instance"}
+ - !Command {command: "lxc storage volume list default type=custom --columns nu"}
+ - !Command {command: "lxc exec app -- ls /srv/app"}
+ - !Wait 2s
+ - !Command {command: "# A dedicated volume for the restic repository"}
+ - !Command {command: "lxc storage volume create default backups size=20GiB"}
+ - !Wait 2s
+ - !Clear
+ - !Marker Launch
+ - !Command {command: "# The backup instance: the repository volume, and the data volume read-only"}
+ - !Command {command: "lxc launch ubuntu:lts backrest --profile default --profile app-backrest"}
+ - !Command {command: "lxc config device add backrest backups disk pool=default source=backups path=/backups"}
+ - !Command {command: "lxc config device add backrest app-data disk pool=default source=app-data path=/backup/app-data readonly=true"}
+ - !Command {command: "lxc exec backrest -- cloud-init status --wait --long"}
+ - !Command {command: "lxc exec backrest -- systemctl is-active backrest"}
+ - !Command {command: "# The web UI listens on port 9898 of the instance"}
+ - !Command {command: "lxc list backrest --columns ns4"}
+ - !Wait 6s
+ - !Command {command: "demo_cleanup", hidden: true}
diff --git a/demo/backrest/plan-schedule.png b/demo/backrest/plan-schedule.png
new file mode 100644
index 0000000..61831c2
Binary files /dev/null and b/demo/backrest/plan-schedule.png differ
diff --git a/demo/backrest/plan.png b/demo/backrest/plan.png
new file mode 100644
index 0000000..0497dbe
Binary files /dev/null and b/demo/backrest/plan.png differ
diff --git a/demo/backrest/repo.png b/demo/backrest/repo.png
new file mode 100644
index 0000000..3d570d9
Binary files /dev/null and b/demo/backrest/repo.png differ
diff --git a/demo/backrest/restore.cast b/demo/backrest/restore.cast
new file mode 100644
index 0000000..a033ebe
--- /dev/null
+++ b/demo/backrest/restore.cast
@@ -0,0 +1,752 @@
+{"version": 2, "width": 156, "height": 40, "timestamp": 1795292296, "duration": 41.630631, "env": {"SHELL": "/usr/bin/bash", "TERM": "xterm-256color", "PS1": "\\[\\e[1;34m\\]lxd\\[\\e[0m\\] > AUTOCAST_PROMPT", "PROMPT_COMMAND": "bind 'set enable-bracketed-paste off'"}}
+[0.0, "o", "\u001b[1;34mlxd\u001b[0m > "]
+[0.0, "o", ""]
+[0.0, "m", "Restic"]
+[0.035, "o", "#"]
+[0.07, "o", " "]
+[0.105, "o", "r"]
+[0.14, "o", "e"]
+[0.175, "o", "s"]
+[0.21, "o", "t"]
+[0.245, "o", "i"]
+[0.28, "o", "c"]
+[0.315, "o", " "]
+[0.35, "o", "i"]
+[0.385, "o", "s"]
+[0.42, "o", " "]
+[0.455, "o", "a"]
+[0.49, "o", "v"]
+[0.525, "o", "a"]
+[0.56, "o", "i"]
+[0.595, "o", "l"]
+[0.63, "o", "a"]
+[0.665, "o", "b"]
+[0.7, "o", "l"]
+[0.735, "o", "e"]
+[0.77, "o", " "]
+[0.805, "o", "i"]
+[0.84, "o", "n"]
+[0.875, "o", " "]
+[0.91, "o", "t"]
+[0.945, "o", "h"]
+[0.98, "o", "e"]
+[1.015, "o", " "]
+[1.05, "o", "b"]
+[1.085, "o", "a"]
+[1.12, "o", "c"]
+[1.155, "o", "k"]
+[1.19, "o", "u"]
+[1.225, "o", "p"]
+[1.26, "o", " "]
+[1.295, "o", "i"]
+[1.33, "o", "n"]
+[1.365, "o", "s"]
+[1.4, "o", "t"]
+[1.435, "o", "a"]
+[1.47, "o", "n"]
+[1.505, "o", "c"]
+[1.54, "o", "e"]
+[1.575, "o", ","]
+[1.61, "o", " "]
+[1.645, "o", "n"]
+[1.68, "o", "e"]
+[1.715, "o", "x"]
+[1.75, "o", "t"]
+[1.785, "o", " "]
+[1.82, "o", "t"]
+[1.855, "o", "o"]
+[1.89, "o", " "]
+[1.925, "o", "B"]
+[1.96, "o", "a"]
+[1.995, "o", "c"]
+[2.03, "o", "k"]
+[2.065, "o", "r"]
+[2.1, "o", "e"]
+[2.135, "o", "s"]
+[2.17, "o", "t"]
+[2.205, "o", "\r\n"]
+[2.209259, "o", "\u001b[1;34mlxd\u001b[0m > "]
+[2.20926, "o", ""]
+[2.24426, "o", "l"]
+[2.27926, "o", "x"]
+[2.31426, "o", "c"]
+[2.34926, "o", " "]
+[2.38426, "o", "s"]
+[2.41926, "o", "h"]
+[2.45426, "o", "e"]
+[2.48926, "o", "l"]
+[2.52426, "o", "l"]
+[2.55926, "o", " "]
+[2.59426, "o", "b"]
+[2.62926, "o", "a"]
+[2.66426, "o", "c"]
+[2.69926, "o", "k"]
+[2.73426, "o", "r"]
+[2.76926, "o", "e"]
+[2.80426, "o", "s"]
+[2.83926, "o", "t"]
+[2.87426, "o", "\r\n"]
+[3.192797, "o", "\u001b]3008;start=26fe51b93ef44c8daa8fdc2c61848f83;user=root;hostname=backrest;machineid=3eb50194b2f745eca62b4e3a672ec22c;bootid=a6976f29528446918536c5bfcfddc9bb;pid=3775;pidfdid=608822;comm=su;targetuser=root;sessionid=c1;type=session\u001b\\"]
+[3.230722, "o", "\u001b]3008;start=6237fdd2-49c6-4d91-bf2a-abfdd0da2bf0;type=shell;machineid=3eb50194b2f745eca62b4e3a672ec22c;user=root;hostname=backrest;bootid=a6976f29-5284-4691-8536-c5bfcfddc9bb;pid=3799;cwd=/root\u001b\\"]
+[3.230835, "o", "\u001b[1;32mroot@backrest\u001b[0m:~# "]
+[3.230835, "o", ""]
+[3.265835, "o", "e"]
+[3.300835, "o", "x"]
+[3.335835, "o", "p"]
+[3.370835, "o", "o"]
+[3.405835, "o", "r"]
+[3.440835, "o", "t"]
+[3.475835, "o", " "]
+[3.510835, "o", "R"]
+[3.545835, "o", "E"]
+[3.580835, "o", "S"]
+[3.615835, "o", "T"]
+[3.650835, "o", "I"]
+[3.685835, "o", "C"]
+[3.720835, "o", "_"]
+[3.755835, "o", "R"]
+[3.790835, "o", "E"]
+[3.825835, "o", "P"]
+[3.860835, "o", "O"]
+[3.895835, "o", "S"]
+[3.930835, "o", "I"]
+[3.965835, "o", "T"]
+[4.000835, "o", "O"]
+[4.035835, "o", "R"]
+[4.070835, "o", "Y"]
+[4.105835, "o", "="]
+[4.140835, "o", "/"]
+[4.175835, "o", "b"]
+[4.210835, "o", "a"]
+[4.245835, "o", "c"]
+[4.280835, "o", "k"]
+[4.315835, "o", "u"]
+[4.350835, "o", "p"]
+[4.385835, "o", "s"]
+[4.420835, "o", "/"]
+[4.455835, "o", "r"]
+[4.490835, "o", "e"]
+[4.525835, "o", "s"]
+[4.560835, "o", "t"]
+[4.595835, "o", "i"]
+[4.630835, "o", "c"]
+[4.665835, "o", " "]
+[4.700835, "o", "R"]
+[4.735835, "o", "E"]
+[4.770835, "o", "S"]
+[4.805835, "o", "T"]
+[4.840835, "o", "I"]
+[4.875835, "o", "C"]
+[4.910835, "o", "_"]
+[4.945835, "o", "P"]
+[4.980835, "o", "A"]
+[5.015835, "o", "S"]
+[5.050835, "o", "S"]
+[5.085835, "o", "W"]
+[5.120835, "o", "O"]
+[5.155835, "o", "R"]
+[5.190835, "o", "D"]
+[5.225835, "o", "="]
+[5.260835, "o", "d"]
+[5.295835, "o", "e"]
+[5.330835, "o", "m"]
+[5.365835, "o", "o"]
+[5.400835, "o", "-"]
+[5.435835, "o", "r"]
+[5.470835, "o", "e"]
+[5.505835, "o", "p"]
+[5.540835, "o", "o"]
+[5.575835, "o", "-"]
+[5.610835, "o", "p"]
+[5.645835, "o", "a"]
+[5.680835, "o", "s"]
+[5.715835, "o", "s"]
+[5.750835, "o", "w"]
+[5.785835, "o", "o"]
+[5.820835, "o", "r"]
+[5.855835, "o", "d"]
+[5.890835, "o", "\r\n"]
+[5.89258, "o", "\u001b]3008;start=03654584-1fa2-4c51-bb85-06611a0038d1;type=command;machineid=3eb50194b2f745eca62b4e3a672ec22c;user=root;hostname=backrest;bootid=a6976f29-5284-4691-8536-c5bfcfddc9bb;pid=3799;cwd=/root\u001b\\"]
+[5.892742, "o", "\u001b]3008;end=03654584-1fa2-4c51-bb85-06611a0038d1;exit=success\u001b\\"]
+[5.893457, "o", "\u001b]3008;start=6237fdd2-49c6-4d91-bf2a-abfdd0da2bf0;type=shell;machineid=3eb50194b2f745eca62b4e3a672ec22c;user=root;hostname=backrest;bootid=a6976f29-5284-4691-8536-c5bfcfddc9bb;pid=3799;cwd=/root\u001b\\"]
+[5.893591, "o", "\u001b[1;32mroot@backrest\u001b[0m:~# "]
+[5.893592, "o", ""]
+[5.928592, "o", "r"]
+[5.963592, "o", "e"]
+[5.998592, "o", "s"]
+[6.033592, "o", "t"]
+[6.068592, "o", "i"]
+[6.103592, "o", "c"]
+[6.138592, "o", " "]
+[6.173592, "o", "s"]
+[6.208592, "o", "n"]
+[6.243592, "o", "a"]
+[6.278592, "o", "p"]
+[6.313592, "o", "s"]
+[6.348592, "o", "h"]
+[6.383592, "o", "o"]
+[6.418592, "o", "t"]
+[6.453592, "o", "s"]
+[6.488592, "o", "\r\n"]
+[6.490192, "o", "\u001b]3008;start=6915a2d1-c57a-4ba0-b89e-2749f0b6b790;type=command;machineid=3eb50194b2f745eca62b4e3a672ec22c;user=root;hostname=backrest;bootid=a6976f29-5284-4691-8536-c5bfcfddc9bb;pid=3799;cwd=/root\u001b\\"]
+[7.015473, "o", "\r\u001b[2Krepository 9f8fbdd5 opened (version 2, compression level auto)\r\n"]
+[7.227199, "o", "\r\u001b[2KID Time Host Tags Paths Size\r\n\r\u001b[2K-----------------------------------------------------------------------------------------------------------\r\n\r\u001b[2Ka098093f 2026-11-21 21:18:03 backrest plan:app-data,created-by:backrest /backup/app-data 312.356 KiB\r\n\r\u001b[2K-----------------------------------------------------------------------------------------------------------\r\n"]
+[7.227204, "o", "\r\u001b[2KTimestamps shown in local time\r\n1 snapshots\r\n"]
+[7.230976, "o", "\u001b]3008;end=6915a2d1-c57a-4ba0-b89e-2749f0b6b790;exit=success\u001b\\"]
+[7.231874, "o", "\u001b]3008;start=6237fdd2-49c6-4d91-bf2a-abfdd0da2bf0;type=shell;machineid=3eb50194b2f745eca62b4e3a672ec22c;user=root;hostname=backrest;bootid=a6976f29-5284-4691-8536-c5bfcfddc9bb;pid=3799;cwd=/root\u001b\\"]
+[7.232106, "o", "\u001b[1;32mroot@backrest\u001b[0m:~# "]
+[7.232106, "o", ""]
+[9.267106, "o", "r"]
+[9.302106, "o", "e"]
+[9.337106, "o", "s"]
+[9.372106, "o", "t"]
+[9.407106, "o", "i"]
+[9.442106, "o", "c"]
+[9.477106, "o", " "]
+[9.512106, "o", "l"]
+[9.547106, "o", "s"]
+[9.582106, "o", " "]
+[9.617106, "o", "l"]
+[9.652106, "o", "a"]
+[9.687106, "o", "t"]
+[9.722106, "o", "e"]
+[9.757106, "o", "s"]
+[9.792106, "o", "t"]
+[9.827106, "o", " "]
+[9.862106, "o", "/"]
+[9.897106, "o", "b"]
+[9.932106, "o", "a"]
+[9.967106, "o", "c"]
+[10.002106, "o", "k"]
+[10.037106, "o", "u"]
+[10.072106, "o", "p"]
+[10.107106, "o", "/"]
+[10.142106, "o", "a"]
+[10.177106, "o", "p"]
+[10.212106, "o", "p"]
+[10.247106, "o", "-"]
+[10.282106, "o", "d"]
+[10.317106, "o", "a"]
+[10.352106, "o", "t"]
+[10.387106, "o", "a"]
+[10.422106, "o", " "]
+[10.457106, "o", "-"]
+[10.492106, "o", "-"]
+[10.527106, "o", "r"]
+[10.562106, "o", "e"]
+[10.597106, "o", "c"]
+[10.632106, "o", "u"]
+[10.667106, "o", "r"]
+[10.702106, "o", "s"]
+[10.737106, "o", "i"]
+[10.772106, "o", "v"]
+[10.807106, "o", "e"]
+[10.842106, "o", " "]
+[10.877106, "o", "|"]
+[10.912106, "o", " "]
+[10.947106, "o", "h"]
+[10.982106, "o", "e"]
+[11.017106, "o", "a"]
+[11.052106, "o", "d"]
+[11.087106, "o", " "]
+[11.122106, "o", "-"]
+[11.157106, "o", "1"]
+[11.192106, "o", "2"]
+[11.227106, "o", "\r\n"]
+[11.229846, "o", "\u001b]3008;start=d720e610-1d36-49fd-9e20-ce5d3db74074;type=command;machineid=3eb50194b2f745eca62b4e3a672ec22c;user=root;hostname=backrest;bootid=a6976f29-5284-4691-8536-c5bfcfddc9bb;pid=3799;cwd=/root\u001b\\"]
+[12.010121, "o", "snapshot a098093f of [/backup/app-data] at 2026-11-21 21:18:03.143304819 +0100 CET by root@backrest filtered by [/backup/app-data]:\r\n/backup/app-data\r\n/backup/app-data/documents\r\n/backup/app-data/documents/bash\r\n/backup/app-data/documents/bash/COMPAT.gz\r\n/backup/app-data/documents/bash/INTRO.gz\r\n/backup/app-data/documents/bash/NEWS.gz\r\n/backup/app-data/documents/bash/POSIX.gz\r\n/backup/app-data/documents/bash/RBASH\r\n/backup/app-data/documents/bash/README.Debian.gz\r\n/backup/app-data/documents/bash/README.abs-guide\r\n/backup/app-data/documents/bash/README.commands.gz\r\n"]
+[12.017389, "o", "\u001b]3008;end=d720e610-1d36-49fd-9e20-ce5d3db74074;exit=success\u001b\\"]
+[12.01834, "o", "\u001b]3008;start=6237fdd2-49c6-4d91-bf2a-abfdd0da2bf0;type=shell;machineid=3eb50194b2f745eca62b4e3a672ec22c;user=root;hostname=backrest;bootid=a6976f29-5284-4691-8536-c5bfcfddc9bb;pid=3799;cwd=/root\u001b\\"]
+[12.018501, "o", "\u001b[1;32mroot@backrest\u001b[0m:~# "]
+[12.018503, "o", ""]
+[14.053503, "o", "r"]
+[14.088503, "o", "e"]
+[14.123503, "o", "s"]
+[14.158503, "o", "t"]
+[14.193503, "o", "i"]
+[14.228503, "o", "c"]
+[14.263503, "o", " "]
+[14.298503, "o", "s"]
+[14.333503, "o", "t"]
+[14.368503, "o", "a"]
+[14.403503, "o", "t"]
+[14.438503, "o", "s"]
+[14.473503, "o", " "]
+[14.508503, "o", "l"]
+[14.543503, "o", "a"]
+[14.578503, "o", "t"]
+[14.613503, "o", "e"]
+[14.648503, "o", "s"]
+[14.683503, "o", "t"]
+[14.718503, "o", "\r\n"]
+[14.720267, "o", "\u001b]3008;start=0734097c-fbf3-43bd-914a-fd8f23ef0477;type=command;machineid=3eb50194b2f745eca62b4e3a672ec22c;user=root;hostname=backrest;bootid=a6976f29-5284-4691-8536-c5bfcfddc9bb;pid=3799;cwd=/root\u001b\\"]
+[15.278388, "o", "\r\u001b[2Krepository 9f8fbdd5 opened (version 2, compression level auto)\r\n"]
+[15.501736, "o", "\r\u001b[2K[0:00] 100.00% 1 / 1 index files loaded\r\n"]
+[15.502447, "o", "\r\u001b[2Kscanning...\r\n"]
+[15.503931, "o", "\r\u001b[2K[0:00] 100.00% 1 / 1 snapshots, 36 files, 312.356 KiB\r\n\r\u001b[2KStats in restore-size mode:\r\n\r\u001b[2K Snapshots processed: 1\r\n\r\u001b[2K Total File Count: 36\r\n\r\u001b[2K Total Size: 312.356 KiB\r\n"]
+[15.508906, "o", "\u001b]3008;end=0734097c-fbf3-43bd-914a-fd8f23ef0477;exit=success\u001b\\"]
+[15.509776, "o", "\u001b]3008;start=6237fdd2-49c6-4d91-bf2a-abfdd0da2bf0;type=shell;machineid=3eb50194b2f745eca62b4e3a672ec22c;user=root;hostname=backrest;bootid=a6976f29-5284-4691-8536-c5bfcfddc9bb;pid=3799;cwd=/root\u001b\\"]
+[15.509911, "o", "\u001b[1;32mroot@backrest\u001b[0m:~# "]
+[15.509912, "o", ""]
+[15.544912, "o", "e"]
+[15.579912, "o", "x"]
+[15.614912, "o", "i"]
+[15.649912, "o", "t"]
+[15.684912, "o", "\r\n"]
+[15.686426, "o", "\u001b]3008;start=4b7763f8-887b-406e-8a7b-0d12db9e3554;type=command;machineid=3eb50194b2f745eca62b4e3a672ec22c;user=root;hostname=backrest;bootid=a6976f29-5284-4691-8536-c5bfcfddc9bb;pid=3799;cwd=/root\u001b\\logout\r\n"]
+[15.686996, "o", "\u001b]3008;end=26fe51b93ef44c8daa8fdc2c61848f83\u001b\\"]
+[15.71306, "o", "\u001b[1;34mlxd\u001b[0m > "]
+[15.71306, "o", ""]
+[18.74806, "o", "\r\u001b[H\u001b[2J\u001b[3J\u001b[1;34mlxd\u001b[0m > "]
+[18.78306, "o", ""]
+[18.78306, "m", "Restore"]
+[18.81806, "o", "#"]
+[18.85306, "o", " "]
+[18.88806, "o", "O"]
+[18.92306, "o", "o"]
+[18.95806, "o", "p"]
+[18.99306, "o", "s"]
+[19.02806, "o", ":"]
+[19.06306, "o", " "]
+[19.09806, "o", "a"]
+[19.13306, "o", " "]
+[19.16806, "o", "f"]
+[19.20306, "o", "i"]
+[19.23806, "o", "l"]
+[19.27306, "o", "e"]
+[19.30806, "o", " "]
+[19.34306, "o", "o"]
+[19.37806, "o", "f"]
+[19.41306, "o", " "]
+[19.44806, "o", "t"]
+[19.48306, "o", "h"]
+[19.51806, "o", "e"]
+[19.55306, "o", " "]
+[19.58806, "o", "a"]
+[19.62306, "o", "p"]
+[19.65806, "o", "p"]
+[19.69306, "o", " "]
+[19.72806, "o", "i"]
+[19.76306, "o", "n"]
+[19.79806, "o", "s"]
+[19.83306, "o", "t"]
+[19.86806, "o", "a"]
+[19.90306, "o", "n"]
+[19.93806, "o", "c"]
+[19.97306, "o", "e"]
+[20.00806, "o", " "]
+[20.04306, "o", "i"]
+[20.07806, "o", "s"]
+[20.11306, "o", " "]
+[20.14806, "o", "l"]
+[20.18306, "o", "o"]
+[20.21806, "o", "s"]
+[20.25306, "o", "t"]
+[20.28806, "o", "\r\n"]
+[20.29352, "o", "\u001b[1;34mlxd\u001b[0m > "]
+[20.293521, "o", ""]
+[20.328521, "o", "l"]
+[20.363521, "o", "x"]
+[20.398521, "o", "c"]
+[20.433521, "o", " "]
+[20.468521, "o", "e"]
+[20.503521, "o", "x"]
+[20.538521, "o", "e"]
+[20.573521, "o", "c"]
+[20.608521, "o", " "]
+[20.643521, "o", "a"]
+[20.678521, "o", "p"]
+[20.713521, "o", "p"]
+[20.748521, "o", " "]
+[20.783521, "o", "-"]
+[20.818521, "o", "-"]
+[20.853521, "o", " "]
+[20.888521, "o", "r"]
+[20.923521, "o", "m"]
+[20.958521, "o", " "]
+[20.993521, "o", "/"]
+[21.028521, "o", "s"]
+[21.063521, "o", "r"]
+[21.098521, "o", "v"]
+[21.133521, "o", "/"]
+[21.168521, "o", "a"]
+[21.203521, "o", "p"]
+[21.238521, "o", "p"]
+[21.273521, "o", "/"]
+[21.308521, "o", "n"]
+[21.343521, "o", "o"]
+[21.378521, "o", "t"]
+[21.413521, "o", "e"]
+[21.448521, "o", "s"]
+[21.483521, "o", "."]
+[21.518521, "o", "t"]
+[21.553521, "o", "x"]
+[21.588521, "o", "t"]
+[21.623521, "o", "\r\n"]
+[21.817423, "o", "\u001b[1;34mlxd\u001b[0m > "]
+[21.817423, "o", ""]
+[21.852423, "o", "l"]
+[21.887423, "o", "x"]
+[21.922423, "o", "c"]
+[21.957423, "o", " "]
+[21.992423, "o", "e"]
+[22.027423, "o", "x"]
+[22.062423, "o", "e"]
+[22.097423, "o", "c"]
+[22.132423, "o", " "]
+[22.167423, "o", "a"]
+[22.202423, "o", "p"]
+[22.237423, "o", "p"]
+[22.272423, "o", " "]
+[22.307423, "o", "-"]
+[22.342423, "o", "-"]
+[22.377423, "o", " "]
+[22.412423, "o", "c"]
+[22.447423, "o", "a"]
+[22.482423, "o", "t"]
+[22.517423, "o", " "]
+[22.552423, "o", "/"]
+[22.587423, "o", "s"]
+[22.622423, "o", "r"]
+[22.657423, "o", "v"]
+[22.692423, "o", "/"]
+[22.727423, "o", "a"]
+[22.762423, "o", "p"]
+[22.797423, "o", "p"]
+[22.832423, "o", "/"]
+[22.867423, "o", "n"]
+[22.902423, "o", "o"]
+[22.937423, "o", "t"]
+[22.972423, "o", "e"]
+[23.007423, "o", "s"]
+[23.042423, "o", "."]
+[23.077423, "o", "t"]
+[23.112423, "o", "x"]
+[23.147423, "o", "t"]
+[23.182423, "o", "\r\n"]
+[23.375436, "o", "cat: /srv/app/notes.txt: No such file or directory\r\n"]
+[23.388642, "o", "\u001b[1;34mlxd\u001b[0m > "]
+[23.388643, "o", ""]
+[23.423643, "o", "#"]
+[23.458643, "o", " "]
+[23.493643, "o", "r"]
+[23.528643, "o", "e"]
+[23.563643, "o", "s"]
+[23.598643, "o", "t"]
+[23.633643, "o", "i"]
+[23.668643, "o", "c"]
+[23.703643, "o", " "]
+[23.738643, "o", "d"]
+[23.773643, "o", "u"]
+[23.808643, "o", "m"]
+[23.843643, "o", "p"]
+[23.878643, "o", " "]
+[23.913643, "o", "w"]
+[23.948643, "o", "r"]
+[23.983643, "o", "i"]
+[24.018643, "o", "t"]
+[24.053643, "o", "e"]
+[24.088643, "o", "s"]
+[24.123643, "o", " "]
+[24.158643, "o", "i"]
+[24.193643, "o", "t"]
+[24.228643, "o", " "]
+[24.263643, "o", "f"]
+[24.298643, "o", "r"]
+[24.333643, "o", "o"]
+[24.368643, "o", "m"]
+[24.403643, "o", " "]
+[24.438643, "o", "t"]
+[24.473643, "o", "h"]
+[24.508643, "o", "e"]
+[24.543643, "o", " "]
+[24.578643, "o", "l"]
+[24.613643, "o", "a"]
+[24.648643, "o", "t"]
+[24.683643, "o", "e"]
+[24.718643, "o", "s"]
+[24.753643, "o", "t"]
+[24.788643, "o", " "]
+[24.823643, "o", "s"]
+[24.858643, "o", "n"]
+[24.893643, "o", "a"]
+[24.928643, "o", "p"]
+[24.963643, "o", "s"]
+[24.998643, "o", "h"]
+[25.033643, "o", "o"]
+[25.068643, "o", "t"]
+[25.103643, "o", ","]
+[25.138643, "o", " "]
+[25.173643, "o", "l"]
+[25.208643, "o", "x"]
+[25.243643, "o", "c"]
+[25.278643, "o", " "]
+[25.313643, "o", "f"]
+[25.348643, "o", "i"]
+[25.383643, "o", "l"]
+[25.418643, "o", "e"]
+[25.453643, "o", " "]
+[25.488643, "o", "p"]
+[25.523643, "o", "u"]
+[25.558643, "o", "s"]
+[25.593643, "o", "h"]
+[25.628643, "o", " "]
+[25.663643, "o", "p"]
+[25.698643, "o", "u"]
+[25.733643, "o", "t"]
+[25.768643, "o", "s"]
+[25.803643, "o", " "]
+[25.838643, "o", "i"]
+[25.873643, "o", "t"]
+[25.908643, "o", " "]
+[25.943643, "o", "b"]
+[25.978643, "o", "a"]
+[26.013643, "o", "c"]
+[26.048643, "o", "k"]
+[26.083643, "o", "\r\n"]
+[26.093186, "o", "\u001b[1;34mlxd\u001b[0m > "]
+[26.093187, "o", ""]
+[26.128187, "o", "l"]
+[26.163187, "o", "x"]
+[26.198187, "o", "c"]
+[26.233187, "o", " "]
+[26.268187, "o", "e"]
+[26.303187, "o", "x"]
+[26.338187, "o", "e"]
+[26.373187, "o", "c"]
+[26.408187, "o", " "]
+[26.443187, "o", "b"]
+[26.478187, "o", "a"]
+[26.513187, "o", "c"]
+[26.548187, "o", "k"]
+[26.583187, "o", "r"]
+[26.618187, "o", "e"]
+[26.653187, "o", "s"]
+[26.688187, "o", "t"]
+[26.723187, "o", " "]
+[26.758187, "o", "-"]
+[26.793187, "o", "-"]
+[26.828187, "o", "e"]
+[26.863187, "o", "n"]
+[26.898187, "o", "v"]
+[26.933187, "o", " "]
+[26.968187, "o", "R"]
+[27.003187, "o", "E"]
+[27.038187, "o", "S"]
+[27.073187, "o", "T"]
+[27.108187, "o", "I"]
+[27.143187, "o", "C"]
+[27.178187, "o", "_"]
+[27.213187, "o", "P"]
+[27.248187, "o", "A"]
+[27.283187, "o", "S"]
+[27.318187, "o", "S"]
+[27.353187, "o", "W"]
+[27.388187, "o", "O"]
+[27.423187, "o", "R"]
+[27.458187, "o", "D"]
+[27.493187, "o", "="]
+[27.528187, "o", "d"]
+[27.563187, "o", "e"]
+[27.598187, "o", "m"]
+[27.633187, "o", "o"]
+[27.668187, "o", "-"]
+[27.703187, "o", "r"]
+[27.738187, "o", "e"]
+[27.773187, "o", "p"]
+[27.808187, "o", "o"]
+[27.843187, "o", "-"]
+[27.878187, "o", "p"]
+[27.913187, "o", "a"]
+[27.948187, "o", "s"]
+[27.983187, "o", "s"]
+[28.018187, "o", "w"]
+[28.053187, "o", "o"]
+[28.088187, "o", "r"]
+[28.123187, "o", "d"]
+[28.158187, "o", " "]
+[28.193187, "o", "-"]
+[28.228187, "o", "-"]
+[28.263187, "o", " "]
+[28.298187, "o", "r"]
+[28.333187, "o", "e"]
+[28.368187, "o", "s"]
+[28.403187, "o", "t"]
+[28.438187, "o", "i"]
+[28.473187, "o", "c"]
+[28.508187, "o", " "]
+[28.543187, "o", "-"]
+[28.578187, "o", "-"]
+[28.613187, "o", "r"]
+[28.648187, "o", "e"]
+[28.683187, "o", "p"]
+[28.718187, "o", "o"]
+[28.753187, "o", " "]
+[28.788187, "o", "/"]
+[28.823187, "o", "b"]
+[28.858187, "o", "a"]
+[28.893187, "o", "c"]
+[28.928187, "o", "k"]
+[28.963187, "o", "u"]
+[28.998187, "o", "p"]
+[29.033187, "o", "s"]
+[29.068187, "o", "/"]
+[29.103187, "o", "r"]
+[29.138187, "o", "e"]
+[29.173187, "o", "s"]
+[29.208187, "o", "t"]
+[29.243187, "o", "i"]
+[29.278187, "o", "c"]
+[29.313187, "o", " "]
+[29.348187, "o", "d"]
+[29.383187, "o", "u"]
+[29.418187, "o", "m"]
+[29.453187, "o", "p"]
+[29.488187, "o", " "]
+[29.523187, "o", "l"]
+[29.558187, "o", "a"]
+[29.593187, "o", "t"]
+[29.628187, "o", "e"]
+[29.663187, "o", "s"]
+[29.698187, "o", "t"]
+[29.733187, "o", " "]
+[29.768187, "o", "/"]
+[29.803187, "o", "b"]
+[29.838187, "o", "a"]
+[29.873187, "o", "c"]
+[29.908187, "o", "k"]
+[29.943187, "o", "u"]
+[29.978187, "o", "p"]
+[30.013187, "o", "/"]
+[30.048187, "o", "a"]
+[30.083187, "o", "p"]
+[30.118187, "o", "p"]
+[30.153187, "o", "-"]
+[30.188187, "o", "d"]
+[30.223187, "o", "a"]
+[30.258187, "o", "t"]
+[30.293187, "o", "a"]
+[30.328187, "o", "/"]
+[30.363187, "o", "n"]
+[30.398187, "o", "o"]
+[30.433187, "o", "t"]
+[30.468187, "o", "e"]
+[30.503187, "o", "s"]
+[30.538187, "o", "."]
+[30.573187, "o", "t"]
+[30.608187, "o", "x"]
+[30.643187, "o", "t"]
+[30.678187, "o", " "]
+[30.713187, "o", "|"]
+[30.748187, "o", " "]
+[30.783187, "o", "l"]
+[30.818187, "o", "x"]
+[30.853187, "o", "c"]
+[30.888187, "o", " "]
+[30.923187, "o", "f"]
+[30.958187, "o", "i"]
+[30.993187, "o", "l"]
+[31.028187, "o", "e"]
+[31.063187, "o", " "]
+[31.098187, "o", "p"]
+[31.133187, "o", "u"]
+[31.168187, "o", "s"]
+[31.203187, "o", "h"]
+[31.238187, "o", " "]
+[31.273187, "o", "-"]
+[31.308187, "o", "-"]
+[31.343187, "o", "u"]
+[31.378187, "o", "i"]
+[31.413187, "o", "d"]
+[31.448187, "o", " "]
+[31.483187, "o", "0"]
+[31.518187, "o", " "]
+[31.553187, "o", "-"]
+[31.588187, "o", "-"]
+[31.623187, "o", "g"]
+[31.658187, "o", "i"]
+[31.693187, "o", "d"]
+[31.728187, "o", " "]
+[31.763187, "o", "0"]
+[31.798187, "o", " "]
+[31.833187, "o", "-"]
+[31.868187, "o", "-"]
+[31.903187, "o", "m"]
+[31.938187, "o", "o"]
+[31.973187, "o", "d"]
+[32.008187, "o", "e"]
+[32.043187, "o", " "]
+[32.078187, "o", "0"]
+[32.113187, "o", "6"]
+[32.148187, "o", "4"]
+[32.183187, "o", "4"]
+[32.218187, "o", " "]
+[32.253187, "o", "-"]
+[32.288187, "o", " "]
+[32.323187, "o", "a"]
+[32.358187, "o", "p"]
+[32.393187, "o", "p"]
+[32.428187, "o", "/"]
+[32.463187, "o", "s"]
+[32.498187, "o", "r"]
+[32.533187, "o", "v"]
+[32.568187, "o", "/"]
+[32.603187, "o", "a"]
+[32.638187, "o", "p"]
+[32.673187, "o", "p"]
+[32.708187, "o", "/"]
+[32.743187, "o", "n"]
+[32.778187, "o", "o"]
+[32.813187, "o", "t"]
+[32.848187, "o", "e"]
+[32.883187, "o", "s"]
+[32.918187, "o", "."]
+[32.953187, "o", "t"]
+[32.988187, "o", "x"]
+[33.023187, "o", "t"]
+[33.058187, "o", "\r\n"]
+[34.064948, "o", "\u001b[1;34mlxd\u001b[0m > "]
+[34.064949, "o", ""]
+[34.099949, "o", "l"]
+[34.134949, "o", "x"]
+[34.169949, "o", "c"]
+[34.204949, "o", " "]
+[34.239949, "o", "e"]
+[34.274949, "o", "x"]
+[34.309949, "o", "e"]
+[34.344949, "o", "c"]
+[34.379949, "o", " "]
+[34.414949, "o", "a"]
+[34.449949, "o", "p"]
+[34.484949, "o", "p"]
+[34.519949, "o", " "]
+[34.554949, "o", "-"]
+[34.589949, "o", "-"]
+[34.624949, "o", " "]
+[34.659949, "o", "c"]
+[34.694949, "o", "a"]
+[34.729949, "o", "t"]
+[34.764949, "o", " "]
+[34.799949, "o", "/"]
+[34.834949, "o", "s"]
+[34.869949, "o", "r"]
+[34.904949, "o", "v"]
+[34.939949, "o", "/"]
+[34.974949, "o", "a"]
+[35.009949, "o", "p"]
+[35.044949, "o", "p"]
+[35.079949, "o", "/"]
+[35.114949, "o", "n"]
+[35.149949, "o", "o"]
+[35.184949, "o", "t"]
+[35.219949, "o", "e"]
+[35.254949, "o", "s"]
+[35.289949, "o", "."]
+[35.324949, "o", "t"]
+[35.359949, "o", "x"]
+[35.394949, "o", "t"]
+[35.429949, "o", "\r\n"]
+[35.578345, "o", "Hello from app\r\n"]
+[35.59563, "o", "\u001b[1;34mlxd\u001b[0m > "]
+[35.595631, "o", ""]
+[41.630631, "o", "\r\n"]
diff --git a/demo/backrest/restore.gif b/demo/backrest/restore.gif
new file mode 100644
index 0000000..dfd5ca2
Binary files /dev/null and b/demo/backrest/restore.gif differ
diff --git a/demo/backrest/restore.yaml b/demo/backrest/restore.yaml
new file mode 100644
index 0000000..177ead9
--- /dev/null
+++ b/demo/backrest/restore.yaml
@@ -0,0 +1,44 @@
+# Demo: restic on the command line in the backup instance, then restore a lost file of the app instance
+# (prerequisites: LXD, mise; everything created and configured if missing, then removed at the end)
+settings:
+ width: 156
+ height: 40
+ type_speed: 35ms
+ # Empty: the prompts are the shell's own (PS1), so that the instance's root shell keeps its own prompt
+ prompt: ""
+ timeout: 300s
+ # bash without rc files: the real prompt (PS1) is used to detect the end of commands
+ shell:
+ program: bash
+ args: [--norc, --noprofile]
+ prompt: AUTOCAST_PROMPT
+ line_split: " \\"
+ quit_command: exit
+ environment:
+ - {name: PS1, value: "\\[\\e[1;34m\\]lxd\\[\\e[0m\\] > AUTOCAST_PROMPT"}
+ - {name: PROMPT_COMMAND, value: "bind 'set enable-bracketed-paste off'"}
+ - {name: TERM, value: xterm-256color}
+
+instructions:
+ - !Command {command: "source demo/backrest/setup.sh restore", hidden: true}
+ - !Marker Restic
+ - !Command {command: "# restic is available in the backup instance, next to Backrest"}
+ - !Command {command: "lxc shell backrest"}
+ - !Command {command: "export RESTIC_REPOSITORY=/backups/restic RESTIC_PASSWORD=demo-repo-password"}
+ - !Command {command: "restic snapshots"}
+ - !Wait 2s
+ - !Command {command: "restic ls latest /backup/app-data --recursive | head -12"}
+ - !Wait 2s
+ - !Command {command: "restic stats latest"}
+ - !Command {command: "exit"}
+ - !Wait 3s
+ - !Clear
+ - !Marker Restore
+ - !Command {command: "# Oops: a file of the app instance is lost"}
+ - !Command {command: "lxc exec app -- rm /srv/app/notes.txt"}
+ - !Command {command: "lxc exec app -- cat /srv/app/notes.txt"}
+ - !Command {command: "# restic dump writes it from the latest snapshot, lxc file push puts it back"}
+ - !Command {command: "lxc exec backrest --env RESTIC_PASSWORD=demo-repo-password -- restic --repo /backups/restic dump latest /backup/app-data/notes.txt | lxc file push --uid 0 --gid 0 --mode 0644 - app/srv/app/notes.txt"}
+ - !Command {command: "lxc exec app -- cat /srv/app/notes.txt"}
+ - !Wait 6s
+ - !Command {command: "demo_cleanup", hidden: true}
diff --git a/demo/backrest/screenshots.mjs b/demo/backrest/screenshots.mjs
new file mode 100644
index 0000000..b95a4d6
--- /dev/null
+++ b/demo/backrest/screenshots.mjs
@@ -0,0 +1,84 @@
+// Screenshots of the Backrest web UI for the tutorial (run by screenshots.sh in
+// a browser instance): first-run settings, repository, plan, backup, snapshot.
+// node screenshots.mjs