aptible db:clone
Warning
Consider using
aptible backup:restore
instead.Indeed,
db:clone
connects to your existing database to copy data out and imports it into your new database.This means
db:clone
creates load on your existing database, and can be slow or disruptive if you have a lot of data to copy. It might even fail if the new database is underprovisioned, since this is a resource-intensive process.This also means
db:clone
only works for a subset of Supported Databases (those that allow for convenient import / export of data).In contrast,
backup:restore
instead uses a snapshot of your existing database's disk, which means it doesn't affect your existing database at all and supports all Aptible-supported Databases.
Synopsis
Usage:
aptible db:clone SOURCE DEST
Options:
[--environment=ENVIRONMENT]
Clone a database to create a new one
Updated about 1 year ago