aptible db:replicate

This command is used to create a replica of an existing database.

πŸ“˜

Note

Database Replication and Clustering before creating a replica.

Examples

Create a replica with a custom Disk Size

aptible db:replicate "$DB_HANDLE" "$REPLICA_HANDLE" \
            --size 20

Create a replica with a custom Container Size

aptible db:replicate "$DB_HANDLE" "$REPLICA_HANDLE" \
            --container-size 2048

Create a replica with a custom Container and Disk Size

aptible db:replicate "$DB_HANDLE" "$REPLICA_HANDLE" \
            --container-size 2048 \
            --size 20

Create an upgraded replica for logical replication

aptible db:replicate "$DB_HANDLE" "$REPLICA_HANDLE" \
            --logical --version 12

Synopsis

Usage:
  aptible db:replicate HANDLE REPLICA_HANDLE [--container-size SIZE_MB] [--disk-size SIZE_GB] [--logical --version VERSION] [--key-arn KEY_ARN]

Options:
  [--environment=ENVIRONMENT]
  [--container-size=N]
  [--size=N]
  [--disk-size=N]
  [--logical], [--no-logical]
  [--version=VERSION]
  [--key-arn=KEY_ARN]

Create a replica/follower of a database

Did this page help you?