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
<NEW>Its new name (not with --resume, --rollback or --clean)
Options
--resumeCarry on an unfinished rename from where it stopped
--rollbackUndo an unfinished rename: the new name dropped, its copies removed, the old started
--cleanRemove the volumes a finished rename left under the old name
--data-backed-upEach database has a tested backup of yours: no restore-tested dump from the last 24h needed
--yesCarry out the plan (without it, this is a dry run)
--confirm <NAME>The stack's name, to make a severe change without a terminal (
--yesalone asks for it to be typed)--waitAfter a redeploy, wait out the 2-minute compare with before. Without it the facts timer runs it (
SeawallDeployWorse)
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