From 7a127ada16e07e1aa64a73c18d0f426b6b7fef06 Mon Sep 17 00:00:00 2001 From: vvvomit Date: Thu, 29 Oct 2026 04:37:27 +0330 Subject: [PATCH] =?UTF-8?q?Maintenance=20=E2=80=BA=20Disk:=20what=20uses?= =?UTF-8?q?=20the=20disk,=20Docker=20prune,=20remote=20media=20retention?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A full disk is how small Matrix servers usually die, mostly from media cached from other servers. Choice rows now wrap onto as many lines as they need instead of going one per line, so the seventh tab fits. Co-Authored-By: Claude Opus 5.5 --- README.md | 7 ++- internal/deploy/deploy.go | 6 +++ internal/deploy/tags.go | 44 +++++++++++++++-- internal/ui/form.go | 12 +++-- internal/ui/maintenance.go | 49 +++++++++++++++++++ internal/ui/maintenance_test.go | 20 +++++++- internal/ui/screens_deploy.go | 4 ++ internal/ui/screens_manage.go | 8 +-- .../ui/testdata/layout/maintenance-120x36.txt | 20 ++++---- .../ui/testdata/layout/maintenance-46x40.txt | 10 ++-- .../ui/testdata/layout/maintenance-48x20.txt | 10 ++-- internal/ui/testdata/layout/manage-120x36.txt | 4 +- internal/ui/testdata/layout/manage-46x40.txt | 2 +- .../testdata/layout/manage-armed-120x36.txt | 4 +- .../ui/testdata/layout/manage-armed-46x40.txt | 2 +- internal/ui/testdata/layout/menu-120x36.txt | 4 +- internal/ui/testdata/layout/sheet-120x36.txt | 4 +- 17 files changed, 168 insertions(+), 42 deletions(-) diff --git a/README.md b/README.md index db8625f..3df0582 100644 --- a/README.md +++ b/README.md @@ -259,7 +259,12 @@ or the [Telegram group](https://t.me/+6UwIu9F4gZQxNjM0). *Services* starts, stops or reinstalls every service or one group of them (`start-all`, `stop-group`, `install-SERVICE`); reinstalling everything runs `setup-all`, which also removes the components you've - turned off, where a normal update leaves them installed. *Vacuum* runs + turned off, where a normal update leaves them installed. *Disk* shows + what takes the server's disk (free space, the largest directories in + `/matrix`, Synapse's local and cached remote media, Docker's images), + removes Docker data nothing uses (`run-docker-prune`), and on Synapse + sets how many days media cached from other servers is kept + (`media_retention`), saved so later updates keep it. *Vacuum* runs one of the five Postgres `VACUUM` presets, *Upgrade* moves Postgres to its newest major version (keeping the old data), *Compress* runs rust-synapse-compress-state, *Tags* runs any playbook tags with extra diff --git a/internal/deploy/deploy.go b/internal/deploy/deploy.go index bb34f25..e9d0df2 100644 --- a/internal/deploy/deploy.go +++ b/internal/deploy/deploy.go @@ -48,6 +48,7 @@ const ( StepCopyData StepTags StepUninstall + StepDisk ) var stepNames = map[Step]string{ @@ -74,6 +75,7 @@ var stepNames = map[Step]string{ StepCopyData: "Copy /matrix to the new server", StepTags: "Run the playbook", StepUninstall: "Remove everything", + StepDisk: "Measure the disk", } func (s Step) String() string { return stepNames[s] } @@ -99,6 +101,7 @@ const ( ActionMigrate ActionTags // run Options.Tags (docs/playbook-tags.md) ActionUninstall // the playbook's remove-all (docs/uninstalling.md) + ActionDisk // what takes the server's disk space ) // Plan lists the steps an action runs, in order. @@ -134,6 +137,8 @@ func Plan(a Action) []Step { return []Step{StepAnsible, StepInventory, StepTags} case ActionUninstall: return []Step{StepAnsible, StepInventory, StepUninstall} + case ActionDisk: + return []Step{StepAnsible, StepInventory, StepDisk} case ActionMigrate: return []Step{StepAnsible, StepPlaybook, StepInventory, StepRoles, StepStopOld, StepCopyData, StepMirrors, StepInstall, StepSelfCheck} } @@ -305,6 +310,7 @@ func (r *Runner) run(ctx context.Context) error { StepCopyData: r.copyData, StepTags: r.tags, StepUninstall: r.uninstall, + StepDisk: r.disk, } plan := Plan(r.opts.Action) r.emit(Event{Plan: plan}) diff --git a/internal/deploy/tags.go b/internal/deploy/tags.go index 80d48d4..9f3f580 100644 --- a/internal/deploy/tags.go +++ b/internal/deploy/tags.go @@ -48,12 +48,48 @@ const uninstallPlay = `- name: Remove everything the playbook installed // (docs/uninstalling.md): every matrix-* service, the Docker images and // /matrix go. Docker itself stays. func (r *Runner) uninstall(ctx context.Context) error { - r.begin(StepUninstall) - play := filepath.Join(r.cfg.PlaybookDir, "inventory", "interzone-uninstall.yml") - if err := os.WriteFile(play, []byte(uninstallPlay), 0o644); err != nil { + return r.play(ctx, StepUninstall, "uninstall", uninstallPlay) +} + +const diskPlay = `- name: Measure the disk + hosts: matrix_servers + become: true + gather_facts: false + tasks: + - name: Measure + ansible.builtin.shell: | + df -h / /matrix 2>/dev/null | awk '!seen[$0]++' + echo + echo "Largest under /matrix:" + du -xsh /matrix/* 2>/dev/null | sort -rh | head -12 + if [ -d /matrix/synapse/storage/media-store ]; then + echo + echo "Synapse media (remote_* is media cached from other servers):" + du -xsh /matrix/synapse/storage/media-store/* 2>/dev/null | sort -rh + fi + echo + docker system df 2>/dev/null + register: interzone_disk + changed_when: false + - name: Disk usage + ansible.builtin.debug: + var: interzone_disk.stdout_lines +` + +// disk shows what takes the server's disk space: free space, the largest +// directories under /matrix, Synapse's media and Docker's images. +func (r *Runner) disk(ctx context.Context) error { + return r.play(ctx, StepDisk, "disk", diskPlay) +} + +// play runs one of interzone's own plays against the server. +func (r *Runner) play(ctx context.Context, step Step, name, play string) error { + r.begin(step) + path := filepath.Join(r.cfg.PlaybookDir, "inventory", "interzone-"+name+".yml") + if err := os.WriteFile(path, []byte(play), 0o644); err != nil { return err } - return r.exec(ctx, StepUninstall, r.cfg.PlaybookDir, "ansible-playbook", "-i", "inventory/hosts", play) + return r.exec(ctx, step, r.cfg.PlaybookDir, "ansible-playbook", "-i", "inventory/hosts", path) } // ServiceGroups are the service groups the playbook can start, stop or diff --git a/internal/ui/form.go b/internal/ui/form.go index b67c77c..c667b9c 100644 --- a/internal/ui/form.go +++ b/internal/ui/form.go @@ -444,10 +444,16 @@ func (f *form) renderField(fl *field, idx int, focused bool, width int) string { } parts = append(parts, mark(f.id+"c"+strconv.Itoa(idx)+"."+strconv.Itoa(i), opt)) } - body = strings.Join(parts, " ") - if lipgloss.Width(body) > inner { - body = strings.Join(parts, "\n") // too narrow for a row: one per line + // as many to a row as fit + var rows []string + for _, p := range parts { + if n := len(rows); n > 0 && lipgloss.Width(rows[n-1])+2+lipgloss.Width(p) <= inner { + rows[n-1] += " " + p + } else { + rows = append(rows, p) + } } + body = strings.Join(rows, "\n") case fArea: fl.area.SetWidth(max(20, inner)) body = fl.area.View() diff --git a/internal/ui/maintenance.go b/internal/ui/maintenance.go index 4863965..40089bd 100644 --- a/internal/ui/maintenance.go +++ b/internal/ui/maintenance.go @@ -1,6 +1,7 @@ package ui import ( + "errors" "slices" "strconv" "strings" @@ -24,6 +25,7 @@ type maintTask struct{ id, label, help string } var maintTasks = []maintTask{ {"services", "Services", "Start, stop or reinstall every service or one group of them. Reinstalling everything also removes the components you've turned off (setup-all), which a normal update leaves in place."}, + {"disk", "Disk", "See what takes the server's disk space, remove Docker images nothing uses, or have Synapse delete media cached from other servers after a while. Media from other servers is usually what fills a small server's disk."}, {"vacuum", "Vacuum", "Give the disk space of deleted rows back (Postgres VACUUM). Do it after deleting a lot, e.g. after compressing Synapse's state."}, {"pgupgrade", "Upgrade", "Move the database to the newest Postgres major version: it is dumped, a new empty server started and the dump restored. The old data directory is kept until you delete it."}, {"compress", "Compress", "Shrink Synapse's _state tables with rust-synapse-compress-state; the most effective way to reduce the database of a server in large rooms. Safe while Synapse runs, but back up first."}, @@ -38,6 +40,9 @@ var vacuumLabels = []string{ "Plain + ANALYZE (services keep running)", "ANALYZE only (fastest)", } +// remoteMediaVar is how long Synapse keeps media cached from other servers. +const remoteMediaVar = "matrix_synapse_media_retention_remote_media_lifetime" + const pgUpgradeBackup = "/matrix/postgres/data-auto-upgrade-backup" // maintainMsg opens Maintenance on one task. @@ -78,6 +83,10 @@ func (s *maintenanceScreen) available() []maintTask { func (s *maintenanceScreen) enter(c *config.Config) tea.Cmd { s.cfg, s.err = c, "" + diskIDs, diskLabels := []string{"usage", "prune"}, []string{"Show what uses the disk", "Remove unused Docker data"} + if c.Homeserver == "synapse" { + diskIDs, diskLabels = append(diskIDs, "retention"), append(diskLabels, "Delete old media from other servers") + } var ids, labels []string for _, t := range s.available() { ids, labels = append(ids, t.id), append(labels, t.label) @@ -90,6 +99,9 @@ func (s *maintenanceScreen) enter(c *config.Config) tea.Cmd { textField("group", "Service group", "", "everything", "Empty for every service, or one group: synapse, postgres, traefik, element, mautrix-telegram, bots, bridges…"), choiceField("do", "Do", []string{"start", "stop", "reinstall"}, []string{"Start or restart", "Stop", "Reinstall"}, "start", ""), + choiceField("disk", "Do", diskIDs, diskLabels, diskIDs[0], ""), + textField("keep", "Keep media from other servers for (days)", strings.TrimSuffix(c.Overrides[remoteMediaVar], "d"), "forever", + "Empty keeps it forever. Synapse fetches it again if someone opens it later; your own users' uploads are never deleted."), choiceField("preset", "Kind of vacuum", vacuumPresets, vacuumLabels, vacuumPresets[0], "The FULL kinds need about as much free disk space as the database takes, and stop every service while they run."), textField("backup", "Keep the old data in", pgUpgradeBackup, pgUpgradeBackup, "Stays until you delete it."), @@ -102,6 +114,8 @@ func (s *maintenanceScreen) enter(c *config.Config) tea.Cmd { return func() bool { return !slices.Contains(ids, f.value("task")) } } f.get("group").hidden, f.get("do").hidden = on("services"), on("services") + f.get("disk").hidden = on("disk") + f.get("keep").hidden = func() bool { return f.value("task") != "disk" || f.value("disk") != "retention" } f.get("preset").hidden = on("vacuum") f.get("backup").hidden = on("pgupgrade") f.get("min").hidden = on("compress") @@ -165,6 +179,19 @@ func (s *maintenanceScreen) options() (deploy.Options, string) { o.Vars = map[string]string{"group": g} o.Tags = map[string]string{"start": "start-group", "stop": "stop-group", "reinstall": "install-" + g + ",start-group"}[do] o.Title = map[string]string{"start": "Restart ", "stop": "Stop ", "reinstall": "Reinstall "}[do] + g + case "disk": + switch f.value("disk") { + case "usage": + o.Action = deploy.ActionDisk + case "prune": + o.Tags, o.Title = "run-docker-prune", "Remove unused Docker data" + case "retention": + if _, err := s.keepDays(); err != nil { + return o, err.Error() + } + o.Tags, o.Title = "install-synapse,start-group", "Apply Synapse's media retention" + o.Vars = map[string]string{"group": "synapse"} + } case "vacuum": o.Tags, o.Title = "run-postgres-vacuum", "Vacuum the database" o.Vars = map[string]string{"postgres_vacuum_preset": f.value("preset")} @@ -202,6 +229,19 @@ func (s *maintenanceScreen) options() (deploy.Options, string) { return o, "" } +// keepDays is the retention typed in, 0 for forever. +func (s *maintenanceScreen) keepDays() (int, error) { + v := strings.TrimSpace(s.form.value("keep")) + if v == "" || v == "forever" { + return 0, nil + } + n, err := strconv.Atoi(v) + if err != nil || n < 1 { + return 0, errors.New("The days to keep media for must be a whole number, or empty for forever.") + } + return n, nil +} + // databaseShell runs psql on the server in this terminal, the TUI paused. func databaseShell(c *config.Config) tea.Cmd { return tea.ExecProcess(deploy.DatabaseShell(c), func(err error) tea.Msg { @@ -220,6 +260,15 @@ func (s *maintenanceScreen) run() tea.Cmd { if o.Action == deploy.ActionUninstall { s.form.get("confirm").input.SetValue("") } + if s.form.value("task") == "disk" && s.form.value("disk") == "retention" { + // Saved like a Tuning change, so later deploys keep it. + if days, _ := s.keepDays(); days == 0 { + delete(s.cfg.Overrides, remoteMediaVar) + } else { + s.cfg.Overrides[remoteMediaVar] = strconv.Itoa(days) + "d" + } + _ = s.cfg.Save() + } return run(o) } diff --git a/internal/ui/maintenance_test.go b/internal/ui/maintenance_test.go index c135758..408252b 100644 --- a/internal/ui/maintenance_test.go +++ b/internal/ui/maintenance_test.go @@ -21,7 +21,7 @@ func TestMaintenance(t *testing.T) { set := func(task string, values map[string]string) { deliver(a, maintainMsg(task)) for k, v := range values { - if k == "do" || k == "preset" { + if k == "do" || k == "preset" || k == "disk" { f := s.form.get(k) for i, c := range f.choices { if c == v { @@ -44,6 +44,10 @@ func TestMaintenance(t *testing.T) { {"services", map[string]string{"do": "reinstall"}, deploy.ActionTags, "setup-all,ensure-matrix-users-created,start", nil, false}, {"services", map[string]string{"group": "postgres", "do": "stop"}, deploy.ActionTags, "stop-group", map[string]string{"group": "postgres"}, false}, {"services", map[string]string{"group": "mautrix-slack", "do": "reinstall"}, deploy.ActionTags, "install-mautrix-slack,start-group", map[string]string{"group": "mautrix-slack"}, false}, + {"disk", map[string]string{"disk": "usage"}, deploy.ActionDisk, "", nil, false}, + {"disk", map[string]string{"disk": "prune"}, deploy.ActionTags, "run-docker-prune", nil, false}, + {"disk", map[string]string{"disk": "retention", "keep": "30"}, deploy.ActionTags, "install-synapse,start-group", map[string]string{"group": "synapse"}, false}, + {"disk", map[string]string{"disk": "retention", "keep": "a month"}, 0, "", nil, true}, {"vacuum", map[string]string{"preset": "analyze"}, deploy.ActionTags, "run-postgres-vacuum", map[string]string{"postgres_vacuum_preset": "analyze"}, false}, {"pgupgrade", nil, deploy.ActionTags, "upgrade-postgres", map[string]string{"postgres_auto_upgrade_backup_data_path": pgUpgradeBackup}, false}, {"compress", map[string]string{"min": "5000"}, deploy.ActionTags, "rust-synapse-compress-state", map[string]string{"matrix_synapse_rust_synapse_compress_state_min_state_groups_required": "5000"}, false}, @@ -66,6 +70,20 @@ func TestMaintenance(t *testing.T) { } } + // Applying a retention keeps it for later deploys; empty keeps media forever. + set("disk", map[string]string{"disk": "retention", "keep": "14"}) + deliver(a, formDoneMsg{}) + if got := a.cfg.Overrides[remoteMediaVar]; got != "14d" { + t.Errorf("retention saved as %q", got) + } + a.jump(a.index("Maintenance")) + set("disk", map[string]string{"disk": "retention", "keep": ""}) + deliver(a, formDoneMsg{}) + if _, ok := a.cfg.Overrides[remoteMediaVar]; ok { + t.Errorf("forever left the retention set") + } + a.jump(a.index("Maintenance")) + // Enter with a problem stays on the screen and says so. set("uninstall", map[string]string{"confirm": "nope"}) deliver(a, formDoneMsg{}) diff --git a/internal/ui/screens_deploy.go b/internal/ui/screens_deploy.go index 4f1416d..ebbb514 100644 --- a/internal/ui/screens_deploy.go +++ b/internal/ui/screens_deploy.go @@ -522,6 +522,7 @@ var actionTitles = map[deploy.Action][3]string{ // running, done, failed deploy.ActionFetchBackups: {"Downloading backups…", "Backups downloaded", "Couldn't download the backups"}, deploy.ActionMigrate: {"Moving the server…", "Moved to the new server ✨", "The move stopped"}, deploy.ActionUninstall: {"Removing everything…", "Everything was removed", "The removal stopped"}, + deploy.ActionDisk: {"Measuring the disk…", "Disk usage", "Couldn't measure the disk"}, } func (s *deployScreen) name() string { return "Deploy" } @@ -925,6 +926,9 @@ func (s *deployScreen) resultView(w int) string { sMuted.Render(fmt.Sprintf("%d backup(s) of %s on this computer now.", n, c.Domain))) case deploy.ActionLogs: return "" + case deploy.ActionDisk: + return panel(cMint, sGood.Render("✓ What uses the disk is in the output above."), + sMuted.Render("Manage › Disk space removes unused Docker data, or deletes old media from other servers.")) case deploy.ActionTags: return panel(cMint, sGood.Render("✓ Done in "+s.elapsed.Round(time.Second).String()+"."), sMuted.Render("The full output is above and in ")+s.logPath()) diff --git a/internal/ui/screens_manage.go b/internal/ui/screens_manage.go index 86a56f6..1a846c3 100644 --- a/internal/ui/screens_manage.go +++ b/internal/ui/screens_manage.go @@ -52,7 +52,7 @@ var manageGroups = []string{"Keep it running", "People", "Data", "Look closer", var actionGroup = map[string]int{ "update": 0, "check": 0, "restart": 0, "services": 0, "changes": 0, "images": 0, "selfupdate": 0, "user": 1, "registration": 1, "users": 1, "tokens": 1, - "backup": 2, "schedule": 2, "restore": 2, "rollback": 2, "vacuum": 2, "pgupgrade": 2, "compress": 2, + "backup": 2, "schedule": 2, "restore": 2, "rollback": 2, "disk": 2, "vacuum": 2, "pgupgrade": 2, "compress": 2, "dashboard": 3, "logs": 3, "tuning": 3, "psql": 3, "tags": 3, "setup": 4, "migrate": 4, "servers": 4, "uninstall": 4, } @@ -63,7 +63,7 @@ var actionIcons = map[string]string{ "backup": "⇩", "schedule": "◷", "restore": "↺", "rollback": "↶", "dashboard": "▦", "logs": "≡", "tuning": "✎", "setup": "◇", "migrate": "⇢", "servers": "▤", - "services": "⏻", "vacuum": "⌫", "pgupgrade": "⇡", "compress": "⇲", "psql": "$", "tags": "#", "uninstall": "✗", + "services": "⏻", "disk": "◔", "vacuum": "⌫", "pgupgrade": "⇡", "compress": "⇲", "psql": "$", "tags": "#", "uninstall": "✗", } // runsAtOnce are the Manage actions that start changing the server as @@ -200,6 +200,8 @@ func (s *manageScreen) actions() []manageAction { desc: "Switch between the servers interzone manages, or add another."}, manageAction{id: "services", title: "Start, stop or reinstall services", desc: "Every service or one group of them. Reinstalling everything also removes the components you've turned off."}, + manageAction{id: "disk", title: "Disk space", + desc: "See what uses the disk, remove unused Docker data, or delete old media cached from other servers."}, manageAction{id: "vacuum", title: "Vacuum the database", desc: "Give the disk space of deleted rows back to the server (Postgres VACUUM)."}, manageAction{id: "pgupgrade", title: "Upgrade Postgres", @@ -365,7 +367,7 @@ func (s *manageScreen) choose(id string) tea.Cmd { return func() tea.Msg { return gotoMsg(screen) } case "psql": return databaseShell(s.cfg) - case "services", "vacuum", "pgupgrade", "compress", "tags", "uninstall": + case "services", "disk", "vacuum", "pgupgrade", "compress", "tags", "uninstall": return func() tea.Msg { return maintainMsg(id) } case "user": u := textField("name", "Username", "", "alice", "Just the name, not @alice:"+s.cfg.Domain+".") diff --git a/internal/ui/testdata/layout/maintenance-120x36.txt b/internal/ui/testdata/layout/maintenance-120x36.txt index 1bbd098..f42e903 100644 --- a/internal/ui/testdata/layout/maintenance-120x36.txt +++ b/internal/ui/testdata/layout/maintenance-120x36.txt @@ -4,16 +4,16 @@ │ ││ Maintenance │ │ ▾ Manage example.org ││ │ │ ⌂ Overview ││ ▌ Task │ -│ @ Users ││ ▌ Services Vacuum Upgrade Compress Tags Uninstall │ -│ ▦ Dashboard ││ ▌ Give the disk space of deleted rows back (Postgres VACUUM). Do it after deleting │ -│ ↻ Updates ││ ▌ a lot, e.g. after compressing Synapse's state. │ -│ ◷ Backups ││ │ -│ ↺ Restore ││ Kind of vacuum │ -│ ↶ Rollback ││ Complete (FULL, ANALYZE; services stop) │ -│ ✎ Fine-tune ││ Full (services stop) │ -│ ▌ ⚒ Maintenance ││ Plain (services keep running) │ -│ ⇢ Move server ││ Plain + ANALYZE (services keep running) │ -│ ▤ Servers ││ ANALYZE only (fastest) │ +│ @ Users ││ ▌ Services Disk Vacuum Upgrade Compress Tags │ +│ ▦ Dashboard ││ ▌ Uninstall │ +│ ↻ Updates ││ ▌ Give the disk space of deleted rows back (Postgres VACUUM). Do it after deleting │ +│ ◷ Backups ││ ▌ a lot, e.g. after compressing Synapse's state. │ +│ ↺ Restore ││ │ +│ ↶ Rollback ││ Kind of vacuum │ +│ ✎ Fine-tune ││ Complete (FULL, ANALYZE; services stop) Full (services stop) │ +│ ▌ ⚒ Maintenance ││ Plain (services keep running) Plain + ANALYZE (services keep running) │ +│ ⇢ Move server ││ ANALYZE only (fastest) │ +│ ▤ Servers ││ │ │ ││ │ │ ▸ Mirrors ││ │ │ ││ │ diff --git a/internal/ui/testdata/layout/maintenance-46x40.txt b/internal/ui/testdata/layout/maintenance-46x40.txt index 18530be..26149e0 100644 --- a/internal/ui/testdata/layout/maintenance-46x40.txt +++ b/internal/ui/testdata/layout/maintenance-46x40.txt @@ -2,11 +2,8 @@ Maintenance ▌ Task - ▌ Services - ▌ Vacuum - ▌ Upgrade - ▌ Compress - ▌ Tags + ▌ Services Disk Vacuum + ▌ Upgrade Compress Tags ▌ Uninstall ▌ Give the disk space of deleted rows ▌ back (Postgres VACUUM). Do it after @@ -36,5 +33,8 @@ + + + ‹ back ≡ menu run › ⋯ \ No newline at end of file diff --git a/internal/ui/testdata/layout/maintenance-48x20.txt b/internal/ui/testdata/layout/maintenance-48x20.txt index 44e37f4..6593433 100644 --- a/internal/ui/testdata/layout/maintenance-48x20.txt +++ b/internal/ui/testdata/layout/maintenance-48x20.txt @@ -1,11 +1,8 @@ ◢◤ ◆ Manage › Maintenance Maintenance ▌ Task - ▌ Services - ▌ Vacuum - ▌ Upgrade - ▌ Compress - ▌ Tags + ▌ Services Disk Vacuum + ▌ Upgrade Compress Tags ▌ Uninstall ▌ Give the disk space of deleted rows back ▌ (Postgres VACUUM). Do it after deleting a @@ -17,4 +14,7 @@ + + + ‹ back ≡ menu run › ⋯ \ No newline at end of file diff --git a/internal/ui/testdata/layout/manage-120x36.txt b/internal/ui/testdata/layout/manage-120x36.txt index 25ddf00..56eb9e6 100644 --- a/internal/ui/testdata/layout/manage-120x36.txt +++ b/internal/ui/testdata/layout/manage-120x36.txt @@ -25,11 +25,11 @@ │ ││ ◷ Scheduled backups s │ │ ││ ↺ Restore a backup e │ │ ││ ↶ Roll back z │ +│ ││ ◔ Disk space │ │ ││ ⌫ Vacuum the database │ │ ││ ⇡ Upgrade Postgres │ │ ││ ⇲ Compress Synapse's state │ -│ ││ │ -│ ◫ auto (wide) ctrl+l ││ Look closer ────────────────────────────────────────────────────────────────────────── │ +│ ◫ auto (wide) ctrl+l ││ │ │ ◐ interzone ctrl+y ││ ▼ more below │ │ ◂ fold ctrl+b menu ││ │ ╰────────────────────────╯╰────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/internal/ui/testdata/layout/manage-46x40.txt b/internal/ui/testdata/layout/manage-46x40.txt index 602f3e5..849da73 100644 --- a/internal/ui/testdata/layout/manage-46x40.txt +++ b/internal/ui/testdata/layout/manage-46x40.txt @@ -25,6 +25,7 @@ ◷ Scheduled backups s ↺ Restore a backup e ↶ Roll back z + ◔ Disk space ⌫ Vacuum the database ⇡ Upgrade Postgres ⇲ Compress Synapse's state @@ -35,6 +36,5 @@ ✎ Fine-tune the roles f $ Database shell # Run playbook tags x - ▼ more below ‹ back ≡ menu run › ⋯ \ No newline at end of file diff --git a/internal/ui/testdata/layout/manage-armed-120x36.txt b/internal/ui/testdata/layout/manage-armed-120x36.txt index e2f04dc..9c27f66 100644 --- a/internal/ui/testdata/layout/manage-armed-120x36.txt +++ b/internal/ui/testdata/layout/manage-armed-120x36.txt @@ -24,12 +24,12 @@ │ ││ ◷ Scheduled backups s │ │ ││ ↺ Restore a backup e │ │ ││ ↶ Roll back z │ +│ ││ ◔ Disk space │ │ ││ ⌫ Vacuum the database │ │ ││ ⇡ Upgrade Postgres │ │ ││ ⇲ Compress Synapse's state │ │ ││ │ -│ ││ Look closer ────────────────────────────────────────────────────────────────────────── │ -│ ◫ auto (wide) ctrl+l ││ ▦ Server dashboard d │ +│ ◫ auto (wide) ctrl+l ││ Look closer ────────────────────────────────────────────────────────────────────────── │ │ ◐ interzone ctrl+y ││ ▼ more below │ │ ◂ fold ctrl+b menu ││ │ ╰────────────────────────╯╰────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/internal/ui/testdata/layout/manage-armed-46x40.txt b/internal/ui/testdata/layout/manage-armed-46x40.txt index 3a11d4b..2102b3c 100644 --- a/internal/ui/testdata/layout/manage-armed-46x40.txt +++ b/internal/ui/testdata/layout/manage-armed-46x40.txt @@ -22,6 +22,7 @@ ◷ Scheduled backups s ↺ Restore a backup e ↶ Roll back z + ◔ Disk space ⌫ Vacuum the database ⇡ Upgrade Postgres ⇲ Compress Synapse's state @@ -35,6 +36,5 @@ Change things ────────────────────────────── ◇ Change the setup w - ⇢ Move to another server v ▼ more below ‹ back ≡ menu run › ⋯ \ No newline at end of file diff --git a/internal/ui/testdata/layout/menu-120x36.txt b/internal/ui/testdata/layout/menu-120x36.txt index 91289b6..e0cba65 100644 --- a/internal/ui/testdata/layout/menu-120x36.txt +++ b/internal/ui/testdata/layout/menu-120x36.txt @@ -25,11 +25,11 @@ │ ││ ◷ Scheduled backups s │ │ ││ ↺ Restore a backup e │ │ ││ ↶ Roll back z │ +│ ││ ◔ Disk space │ │ ││ ⌫ Vacuum the database │ │ ││ ⇡ Upgrade Postgres │ │ ││ ⇲ Compress Synapse's state │ -│ ││ │ -│ ◫ auto (wide) ctrl+l ││ Look closer ────────────────────────────────────────────────────────────────────────── │ +│ ◫ auto (wide) ctrl+l ││ │ │ ◐ interzone ctrl+y ││ ▼ more below │ │ ◂ fold ctrl+b menu ││ │ ╰────────────────────────╯╰────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/internal/ui/testdata/layout/sheet-120x36.txt b/internal/ui/testdata/layout/sheet-120x36.txt index 91289b6..e0cba65 100644 --- a/internal/ui/testdata/layout/sheet-120x36.txt +++ b/internal/ui/testdata/layout/sheet-120x36.txt @@ -25,11 +25,11 @@ │ ││ ◷ Scheduled backups s │ │ ││ ↺ Restore a backup e │ │ ││ ↶ Roll back z │ +│ ││ ◔ Disk space │ │ ││ ⌫ Vacuum the database │ │ ││ ⇡ Upgrade Postgres │ │ ││ ⇲ Compress Synapse's state │ -│ ││ │ -│ ◫ auto (wide) ctrl+l ││ Look closer ────────────────────────────────────────────────────────────────────────── │ +│ ◫ auto (wide) ctrl+l ││ │ │ ◐ interzone ctrl+y ││ ▼ more below │ │ ◂ fold ctrl+b menu ││ │ ╰────────────────────────╯╰────────────────────────────────────────────────────────────────────────────────────────────╯