docs: Backrest tutorial with recorded demos and UI screenshots (demo/backrest)
- demo/backrest/README.md (fr) and README.en.md: a backup instance reading the data volume of another instance read-only, restic repository on its own volume, Backrest configured from the web UI, then restic on the command line and restoring a lost file - install and restore scenarios recorded with autocast; restore configures Backrest through its configuration file (autoInitialize) - UI screenshots made by screenshots.sh: a Debian instance with Chromium driven by Playwright fills in the forms - demo/lib.sh: helpers shared by the tutorial preambles - Docker tutorial: a filesystem volume can be shared by several instances, two Docker daemons must not share /var/lib/docker Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018inUJkPw1qcoCubeKqfffm
This commit is contained in:
1 parent
abd1f7f4b2
commit
8e7557865d
26 files changed
+2757
-20
No files matched your search
@@ -301,8 +301,9 @@ Two options then:
|
||||
repository file from the installed profile. Review it with `git diff`, then
|
||||
commit it in your clone (or your fork).
|
||||
|
||||
A volume can only be attached to one instance at a time. For a second Docker
|
||||
instance, copy the profile and give it its own volume:
|
||||
LXD lets several instances attach the same volume, but two Docker daemons must
|
||||
never share the same `/var/lib/docker`. For a second Docker instance, copy the
|
||||
profile and give it its own volume:
|
||||
|
||||
```shell
|
||||
lxc storage volume create default docker2-data
|
||||
|
||||
@@ -303,8 +303,9 @@ Deux options s'offrent alors à vous :
|
||||
fichier du dépôt à partir du profil installé. À relire avec `git diff`, puis
|
||||
à commiter dans votre clone (ou votre fork).
|
||||
|
||||
Un volume ne peut être attaché qu'à une seule instance à la fois. Pour une
|
||||
deuxième instance Docker, copiez le profil et donnez-lui son propre volume :
|
||||
LXD permet d'attacher un même volume à plusieurs instances, mais deux démons
|
||||
Docker ne doivent jamais partager le même `/var/lib/docker`. Pour une deuxième
|
||||
instance Docker, copiez le profil et donnez-lui son propre volume :
|
||||
|
||||
```shell
|
||||
lxc storage volume create default docker2-data
|
||||
|
||||
+3
-11
@@ -4,20 +4,12 @@
|
||||
# source demo/docker/setup.sh usage # instance "docker" ready (created if missing)
|
||||
# demo_cleanup (epilogue) removes what the demo created.
|
||||
eval "$(mise activate bash)"
|
||||
source demo/lib.sh
|
||||
DEMO_INSTANCE=docker
|
||||
DEMO_PROFILE=docker-unprivileged
|
||||
DEMO_REPO=$PWD
|
||||
DEMO_CREATED=
|
||||
|
||||
# Root shell of the instance, made recordable: its prompt ends with the marker
|
||||
# autocast waits for, and its input is not echoed twice (no readline, no tty echo)
|
||||
demo_instance_shell() {
|
||||
lxc exec "$DEMO_INSTANCE" -- sh -c "cat >> /root/.bashrc" <<'RC'
|
||||
PS1='\[\e[1;32m\]root@docker\[\e[0m\]:\w# AUTOCAST_PROMPT'
|
||||
set +o emacs; stty -echo
|
||||
RC
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
install)
|
||||
if lxc info "$DEMO_INSTANCE" >/dev/null 2>&1 || lxc profile show "$DEMO_PROFILE" >/dev/null 2>&1; then
|
||||
@@ -33,9 +25,9 @@ case "$1" in
|
||||
DEMO_CREATED=yes
|
||||
mise run install --yes "$DEMO_PROFILE" >/dev/null
|
||||
lxc launch ubuntu:lts "$DEMO_INSTANCE" --profile default --profile "$DEMO_PROFILE" >/dev/null
|
||||
lxc exec "$DEMO_INSTANCE" -- cloud-init status --wait >/dev/null
|
||||
demo_wait_cloud_init "$DEMO_INSTANCE"
|
||||
fi
|
||||
demo_instance_shell
|
||||
demo_instance_shell "$DEMO_INSTANCE"
|
||||
;;
|
||||
esac
|
||||
|
||||
|
||||
Reference in new issue
Block a user