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
+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