BlueForge Docs

forge db-move

Move a database between hosts.

Command

forge db-move <db-id> --target <host> [--wait]

Arguments

NameTypeRequiredNotes
db-id
stringyesDatabase ID

Flags

FlagTypeRequiredDefaultNotes
--target
stringyesTarget host name
--wait
boolno
false
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 codeMeaning
0Move triggered successfully
1Failed 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}