backup:restorecreates 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.
If you are restoring a Backup of a GP3 volume, the new Database will be provisioned with the base performance characteristics: 3,000 IOPs and 125MB/s throughput. If the original Database's performance was scaled up, you may need to modify the restored Database if you wish to retain the performance of the source Database.
aptible backup:restore "$BACKUP_ID"
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" \ --disk-size "$DISK_SIZE_GB"
aptible backup:restore "$BACKUP_ID" \ --environment "$ENVIRONMENT_HANDLE"
Usage: aptible backup:restore BACKUP_ID [--environment ENVIRONMENT_HANDLE] [--handle HANDLE] [--container-size SIZE_MB] [--disk-size SIZE_GB] [--key-arn KEY_ARN] Options: [--handle=HANDLE] # a name to use for the new database [--environment=ENVIRONMENT] # a different environment to restore to [--container-size=N] [--size=N] [--disk-size=N] [--key-arn=KEY_ARN] Restore a backup
Updated 3 months ago