This command clones an existing Database.
❗️ Warning: Consider using
aptible backup:restore instead.
db:cloneconnects to your existing Database to copy data out and imports it into your new Database.
db:clonecreates 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:cloneonly works for a subset of Supported Databases (those that allow for convenient import / export of data).
backup:restoreinstead 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.
Usage: aptible db:clone SOURCE DEST Options: [--environment=ENVIRONMENT]