seawall stack rename

Give a running stack a new name, copying its volumes to the new name's (severe).

Give a running stack a new name, copying its volumes to the new name's (severe)

Compose names a stack's volumes, networks and containers after it, so the stack stops, each volume its project made is copied and compared, and it runs under the new name through its manager. A database is dumped and restore-tested first. The plan lists the routes, silences and dashboards that name its containers. If the new name doesn't settle, the old one starts again. The old volumes stay until --clean.

Usage

seawall stack rename [OPTIONS] <STACK> [NEW]

Changes the host

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

Arguments

<STACK>

The stack, by name or directory

Required.

<NEW>

Its new name (not with --resume, --rollback or --clean)

Options

--resume

Carry on an unfinished rename from where it stopped

--rollback

Undo an unfinished rename: the new name dropped, its copies removed, the old started

--clean

Remove the volumes a finished rename left under the old name

--data-backed-up

Each database has a tested backup of yours: no restore-tested dump from the last 24h needed

--yes

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

--confirm <NAME>

The stack's name, to make a severe change without a terminal (--yes alone asks for it to be typed)

--wait

After a redeploy, wait out the 2-minute compare with before. Without it the facts timer runs it (SeawallDeployWorse)

Every command also takes the global options.

Examples

seawall stack rename blog site
seawall stack rename blog site --yes
seawall stack rename blog --resume
seawall stack rename blog --rollback --yes
seawall stack rename blog --clean --yes