v2.15.0 cf76057

backup.md RawHistoryFolder

Backup Command

Manage backups for database attachments.

gordon backup

gordon backup <subcommand>

Subcommands:

  • list [domain] - List backups globally or for one domain
  • run <domain> [--db <name>] - Trigger an immediate backup
  • detect <domain> - Detect supported databases for a domain
  • status - Show backup status across domains

Note: Backup commands currently require remote mode (--remote + --token, or configured remotes).

gordon backup run <domain> auto-selects the database only when exactly one supported DB attachment is detected. If multiple DB attachments are present, pass --db <name>.

In normal usage, configure remotes once (gordon remotes ...) and run backup commands without per-command remote flags.

Examples

# List all backups
gordon backup list

# List backups for one domain
gordon backup list app.example.com

# Trigger backup (auto-detect when exactly one DB attachment exists)
gordon backup run app.example.com

# Trigger backup for specific attachment name
gordon backup run app.example.com --db postgres

# Detect DB attachments
gordon backup detect app.example.com

# Status summary
gordon backup status

Output Columns

list

<domain>\t<db>\t<status>\t<started_at>\t<backup_id>

detect

<name>\t<type>\t<host>\t<port>\t<image>

status

<domain>\t<db>\t<status>\t<started_at>

run

<domain>\t<db>\t<status>\t<started_at>\t<backup_id>\t<size_bytes>

Required Permissions

  • Read operations (list, status, detect) require admin:status:read.
  • run requires admin:config:write.
source
1# Backup Command
2
3Manage backups for database attachments.
4
5## gordon backup
6
7```bash
8gordon backup <subcommand>
9```
10
11Subcommands:
12
13- `list [domain]` - List backups globally or for one domain
14- `run <domain> [--db <name>]` - Trigger an immediate backup
15- `detect <domain>` - Detect supported databases for a domain
16- `status` - Show backup status across domains
17
18> **Note:** Backup commands currently require remote mode (`--remote` + `--token`, or configured remotes).
19>
20> `gordon backup run <domain>` auto-selects the database only when exactly one supported DB attachment is detected. If multiple DB attachments are present, pass `--db <name>`.
21
22In normal usage, configure remotes once (`gordon remotes ...`) and run backup commands without per-command remote flags.
23
24## Examples
25
26```bash
27# List all backups
28gordon backup list
29
30# List backups for one domain
31gordon backup list app.example.com
32
33# Trigger backup (auto-detect when exactly one DB attachment exists)
34gordon backup run app.example.com
35
36# Trigger backup for specific attachment name
37gordon backup run app.example.com --db postgres
38
39# Detect DB attachments
40gordon backup detect app.example.com
41
42# Status summary
43gordon backup status
44```
45
46## Output Columns
47
48### list
49
50```text
51<domain>\t<db>\t<status>\t<started_at>\t<backup_id>
52```
53
54### detect
55
56```text
57<name>\t<type>\t<host>\t<port>\t<image>
58```
59
60### status
61
62```text
63<domain>\t<db>\t<status>\t<started_at>
64```
65
66### run
67
68```text
69<domain>\t<db>\t<status>\t<started_at>\t<backup_id>\t<size_bytes>
70```
71
72## Required Permissions
73
74- Read operations (`list`, `status`, `detect`) require `admin:status:read`.
75- `run` requires `admin:config:write`.
76
77## Related
78
79- [CLI Commands](./index.md)
80- [Backups Configuration](../config/backups.md)

Keyboard shortcuts

Single-key shortcuts are on. ctrl k and esc work whatever this says.

ctrl k :
go to a section, branch, tag, file or repository
?
this list
j k
move the row cursor down / up
enter
open the row under the cursor; on Files, a directory opens or closes in place
↑ ↓ ← → home end
in the file tree (focus on a row): previous / next row, close / open a directory or go to its parent / first entry, first / last row. They never open a file
l h
on Files: open a directory or a file / close a directory or go up to its parent, then to the parent page. Elsewhere: into the side panel (on a merge request, its files) / back to the content; there j k move between its controls
g g G
first / last row
/
filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)
b
switch branch or tag
g s g f g c g b g m g i g r g a
tabs: summary, files, commits, branches & tags, merge requests, issues, releases, actions (when available)
g h
home
w
wide mode: use the whole width of the screen, or not (remembered)
y
copy a permalink pinned to the commit
d u x
diff: split / unified / collapse or expand all
e E
diff: the whole file in view / every file, with the lines the hunks hide
n
merge request: next note in the diff
esc
close a dialog, leave a field

Branches 7

Tags 106

↑↓ moveenter openesc close