Aptible Deploy

aptible backup:restore



backup:restore creates a new database: it does not overwrite your existing database. In fact, it doesn't interact with your existing database at all.

This command is used to restore from a Database Backup.

You'll need the ID of an existing Backup to use this command. You can find those IDs using the aptible backup:list command, or through the Dashboard.


Restore a Backup

aptible backup:restore "$BACKUP_ID"

Customize the new Database

You can also customize the new Database that will be created from the Backup:

aptible backup:restore "$BACKUP_ID" \
        --handle "$NEW_DATABASE_HANDLE" \
        --container-size "$CONTAINER_SIZE_MB" \
        --size "$DISK_SIZE_GB"

Restore to a different Environment

You can restore Backups across Environments as long as they are hosted on the same Stack:

aptible backup:restore "$BACKUP_ID" \
        --environment "$ENVIRONMENT_HANDLE"


  aptible backup:restore BACKUP_ID [--environment ENVIRONMENT_HANDLE] [--handle HANDLE] [--container-size SIZE_MB] [--disk-size SIZE_GB] [--key-arn KEY_ARN]

  [--handle=HANDLE]            # a name to use for the new database
  [--environment=ENVIRONMENT]  # a different environment to restore to

Restore a backup

Updated 28 days ago

aptible backup:restore

Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.