seawall restore
Put a host back from a config repo seawall keeps, at a commit you name.
Put a host back from a config repo seawall keeps, at a commit you name
Each setting in the repo that widens what runs is shown and confirmed first; a commit with a link or a submodule is refused. Then seawall.toml, seawall init, and each stack. Without --yes it prints the plan and changes nothing; --check also lists what needs confirming, without your key.
Usage
seawall restore [OPTIONS] --from <REPO>
Changes the host
Without --yes it prints the plan and changes nothing.
Options
--from <REPO>The repo: [email protected]:owner/repo.git, or a repo folder on this host
--commit <ID>The commit to restore, by its full id (listed when it's left out)
--branch <NAME>The repo's branch to restore from (default: [cloud].branch, main unless set)
--drilled <ID>The commit you last drilled: only commits since it are offered, and lint allows added since it need confirming
--age-key <FILE>Your age secret key's file (else it's asked for, and never written to disk)
--recipient <KEY>Your age public key, for later captures (else your key's own)
--checkSay what the restore would do and what needs confirming, and change nothing
--yesCarry out the plan (without it, this is a dry run)
--waitAfter a redeploy, wait out the 2-minute compare with before. Without it the facts timer runs it (
SeawallDeployWorse)
Examples
seawall restore --from [email protected]:me/host-config.git
seawall restore --from [email protected]:me/host-config.git --commit <id> --check
seawall restore --from [email protected]:me/host-config.git --commit <id> --age-key ~/owner.key --yes