How to create a Database Lab clones
#
GUI- Go to the Database Lab instance page.
- Click the Create clone button.
- Fill the ID field with a meaningful name.
- (optional) By default, the latest data snapshot (closest to production state) will be used to provision a clone. You can select any other available snapshot.
- Fill database credentials. Remember the password, it will not be available later, but you will need to use it to connect to the clone.
- (optional) Enable protected status (it can be done later if needed). Please be careful: abandoned protected clones may cause out-of-disk-space events. Read the details here.
- Click the Create clone button and wait for a clone to provision.
- You will be redirected to the Database Lab clone page.
#
CLIBefore you run any commands, install Database Lab CLI and initialize configuration. For more information, see Install and initialize Database Lab CLI.
#
Reference- Command
dblab clone create
- Command
dblab snapshot list
#
Basic clone creationCreate a clone using dblab clone create
command. You need to specify the username and password that will be used to connect to the clone. Remember the password, it will not be available later, but you will need to use it to connect to the clone.
#
Create a clone with a non-default snapshotBy default latest data snapshot (closest to production state) will be used to provision a clone. You can select any other available snapshot.
- List available snapshots.
- Create a clone with the state, based on the desired snapshot.
#
Protected statusYou can make clone protected during the creation or later (if needed). Please be careful: abandoned protected clones may cause out-of-disk-space events. Read the details here.
#
Related- Guide: Connect to a clone
- Guide: Destroy a clone