dcloud deploy host-database-branches create

Cut a branch: a full copy of the database, on the same pool host

IAM deploy:ManageHostDatabaseChanges state

The pool host copies the database (pg_dump and pg_restore into a new database with its own role) while the app keeps running: the copy holds the data as of its start. It takes seconds for a small database and longer for a big one; state goes creating, then ready or failed. A branch is not billed, has the database’s size limit, and is deleted after expiresInHours. At most 2 branches per app; the pool host refuses one it has no disk for.

Synopsis

dcloud deploy host-database-branches create id [flags]

Arguments

  • <id>Required

    string

    Also accepted as --id. Constraints: uuid

Flags

  • --expires-in-hoursOptional

    number

    Hours until the branch is deleted, 1 to 168 (7 days); 24 when not given

    Constraints: integer, 1-168

Example

dcloud deploy host-database-branches create id

Generated from the API description, the same one the API checks requests against and the CLI is built from.