reoclo relocate
reoclo relocate plan --to <server> [--app <ref>]... [--stack <ref>]... [--group <ref>]... [options]reoclo relocate run <id> (--plan-hash <hash> | --cutover | --confirm-dns <hash> | --resume) [--yes]reoclo relocate status [id] [--watch]reoclo relocate rollback <id> [--discard-target-data] [--yes]reoclo relocate commit <id> [--yes]Relocate moves services and their volume data to another server you own. A run is a Relocation. See the Relocate guide for how a Relocation works, what downtime to expect, and how rollback works.
Relocate is available to organizations where it is enabled. Organization keys can run these commands; automation keys cannot.
Checks a plan and prints its ID. It never starts the Relocation.
$ reoclo relocate plan --app web --stack files --to new-server --gate-before-cutover✓ relocation planned: 0b6d... nothing has started; review it with `reoclo relocate status 0b6d...`| Option | Meaning |
|---|---|
--app <ref> | An application id, slug or name. Repeatable. |
--stack <ref> | A stack id, slug or name. Repeatable. The whole stack moves. |
--group <ref> | An application group id, slug or name. Repeatable. |
--to <server> | The target server. |
--gate-before-cutover | Stop before traffic moves and wait for run --cutover. |
--warm <server:volume> | Copy this volume warm, with a final delta pass. Needs --ordinary-files-ok. Cold copy is the default. |
--no-auto-commit | Keep the source copies after the 72-hour window until you run commit. |
Starts a planned Relocation, or releases one of its gates. Pass exactly one mode.
| Mode | When |
|---|---|
--plan-hash <hash> | Start the plan. The hash must match the plan you reviewed, or the API answers plan_stale. |
--cutover | Approve the cutover gate of a run planned with --gate-before-cutover. |
--confirm-dns <hash> | Tell Reoclo you changed the manual DNS records shown by status. Reoclo still reads them back. |
--resume | Resume a Relocation that needs attention, after you fixed the cause. |
Without --yes, the command asks for confirmation. In a pipe or CI job it refuses with exit code 2 unless you pass --yes.
status
Section titled “status”Without an ID, lists Relocations. With an ID, shows its state, plan hash, the action it waits for, and the DNS record hash.
--watch prints events as they arrive and returns when the Relocation needs a decision (a gate, attention, or the end). Ctrl-C stops watching; the Relocation keeps running.
rollback
Section titled “rollback”Rolls the Relocation back to its source. Before DNS changed, no data is lost. After DNS changed, the target may have taken writes that rollback discards, so the command requires --discard-target-data.
commit
Section titled “commit”Removes the retained source containers and volumes. After this, rollback is no longer possible. Reoclo refuses the commit until old-source traffic forwarding has drained.
Exit codes
Section titled “Exit codes”0 success, 2 bad arguments or a missing --yes, 4 not permitted, 5 not found, 1 a refused transition such as plan_stale or confirmation_required.