forge db-move
Move a database between hosts.
Command
forge db-move <db-id> --target <host> [--wait]
Arguments
| Name | Type | Required | Notes |
|---|---|---|---|
| string | yes | Database ID |
Flags
| Flag | Type | Required | Default | Notes |
|---|---|---|---|---|
| string | yes | — | Target host name |
| bool | no | | Wait for move to complete |
Examples
Move database:
forge db-move db_xxxxx --target hetzner-prod-2
Wait for completion:
forge db-move db_xxxxx --target hetzner-prod-2 --wait
Errors
| Exit code | Meaning |
|---|---|
| 0 | Move triggered successfully |
| 1 | Failed to move |
Pitfalls
- Downtime — the database is briefly unavailable during the move.
- Target validation — the target host must exist and have sufficient capacity.
See also
{auto-injected}
Tested against
{auto-injected}