Skip to main content
Skip table of contents

Couchbase dSource creation via CLI

To create a dSource via CLI, you must first add a source configuration. For more information, see the Couchbase SourceConfig operations page.

To create a dSource and perform operations via CLI, login to the Delphix Continuous Data Engine using the admin user account, as exemplified below.
ssh admin@dlpx-engine.delphix.com

Setting default linking parameters

Run the below commands to set the default linking parameters. The below example uses a testscfg source config.

CODE
> database link
> set type=LinkParameters
> set linkData.type=AppDataStagedLinkData 
> set name=testds
> set group=Untitled
> set linkData.config=testscfg
> set linkData.environmentUser=rh74-cbase/delphix_os
> set linkData.stagingEnvironment=rh74-cbase
> set linkData.stagingEnvironmentUser=rh74-cbase/delphix_os
> set linkData.syncParameters.parameters={\"resync\":true}

Run the below commands to link parameters for the XDCR ingestion type.

CODE
> set linkData.parameters="{ \
\"dSourceType\":\"XDCR\", \
\"couchbaseHost\":\"rh74-cbase.delphix.com\", \
\"couchbasePort\":8091, \
\"couchbaseBakLoc\":\"\", \
\"couchbaseBakRepo\":\"\", \
\"mountPath\":\"/mnt/provision/testds\", \
\"stgClusterName\":\"dlpx_staging_cluster\", \
\"clusterRAMSize\":2000, \
\"clusterIndexRAMSize\":256, \
\"clusterFTSRAMSize\":256, \
\"clusterEventingRAMSize\":256, \
\"clusterAnalyticsRAMSize\":1024, \
\"bucketEvictionPolicy\":\"valueOnly\", \
\"bucketSize\":0, \
\"couchbaseAdmin\":\"Administrator\", \
\"couchbaseAdminPassword\":\"delphix\", \
\"xdcrAdmin\": \"Administrator\", \
\"xdcrAdminPassword\":\"\", \
\"fts_service\":false, \
\"eventing_service\":false, \
\"analytics_service\":true, \
\"config_settings_prov\":[]
}"

Run the below commands to link parameters for the Couchbase Backup Manager ingestion type.

CODE
> set linkData.parameters="{ \
\"dSourceType\":\"Couchbase Backup Manager\", \
\"couchbaseHost\":\"rh74-cbase.delphix.com\", \
\"couchbasePort\":8091, \
\"couchbaseBakLoc\":\"/home/delphix_os/backups\", \
\"couchbaseBakRepo\":\"delphix_backup_repo\", \
\"mountPath\":\"/mnt/provision/testds\", \
\"stgClusterName\":\"dlpx_staging_cluster\", \
\"clusterRAMSize\":2000, \
\"clusterIndexRAMSize\":256, \
\"clusterFTSRAMSize\":256, \
\"clusterEventingRAMSize\":256, \
\"clusterAnalyticsRAMSize\":1024, \
\"bucketEvictionPolicy\":\"valueOnly\", \
\"bucketSize\":0, \
\"couchbaseAdmin\":\"Administrator\", \
\"couchbaseAdminPassword\":\"delphix\", \
\"xdcrAdmin\": \"Administrator\", \
\"xdcrAdminPassword\":\"\", \
\"fts_service\":false, \
\"eventing_service\":false, \
\"analytics_service\":true, \
\"config_settings_prov\":[]
}"
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.