seawall db backup

Dump a stack's database to its folder in paths.backups (credentials stay in the container).

Usage

seawall db backup [OPTIONS] [STACK]

Changes the host

Without --yes it prints the plan and changes nothing.

Arguments

<STACK>

The stack, by Portainer name or directory

Options

--all

Every running database (the scheduled run)

--keep <KEEP>

With --all: dumps to keep per database

Default 14.

--verify

With --all: restore-test each new dump

--metrics <METRICS>

With --all: write node-exporter textfile metrics here

--yes

Carry out the plan (without it, this is a dry run)

Every command also takes the global options.

Examples

seawall db backup nextcloud
seawall db backup nextcloud --yes