-
Notifications
You must be signed in to change notification settings - Fork 33
dx_ctl_js_branch
Marcin Przepiorowski edited this page Mar 21, 2019
·
2 revisions
dx_ctl_js_branch [ -engine|d <delphix identifier> | -all ] [ -configfile file ]
-action create|delete|activate
-container_name container_name
-branch_name branch_name
[ -template_name template_name ]
[ -timestamp timestamp ]
[ -from_branch branch_name ]
[ -help|? ]
[ -debug ]
Run a action on the JetStream branch
Delphix Engine selection - if not specified a default host(s) from dxtools.conf will be used.
- -engine|d Specify Delphix Engine name from dxtools.conf file
- -all Display databases on all Delphix appliance
- -configfile file Location of the configuration file. A config file search order is as follow:
- configfile parameter
- DXTOOLKIT_CONF variable
- dxtools.conf from dxtoolkit location
-
-action create|delete|activate
Run a action on the branch
- -create - create branch
- -delete - delete branch
- -activate - activate branch
- -container_name container_name Name of container to run action on
- -template_name template_name Name of container's templates
- -branch_name branch_name Name of new branch
- **-timestamp "YYYY-MM-DD HH24:MI:SS" or bookmark name ** Use timestamp or bookmark name to create branch. If timestamp options is not specified, branch will be created from latest point
- **-from_branch branch_name ** Create branch from particular branch. If from_branch option is not specified an active branch will be used
- -help Print this screen
- -debug Turn on debugging
Create branch from active branch using latest point in time
dx_ctl_js_branch -d Landshark5 -action create -container_name testcon -template_name testdx -branch_name latest_branch
Starting job - JOB-9755
0 - 1 - 5 - 13 - 24 - 30 - 37 - 42 - 46 - 50 - 58 - 76 - 77 - 80 - 95 - 100
Job JOB-9755 finished with state: COMPLETED
Job for branch latest_branch completed.
Create branch using a bookmark name
dx_ctl_js_branch -d Landshark5 -action create -container_name testcon -branch_name frombook -timestamp bookmark12
Starting job - JOB-9759
0 - 1 - 5 - 13 - 24 - 30 - 37 - 42 - 46 - 50 - 58 - 76 - 77 - 80 - 95 - 100
Job JOB-9755 finished with state: COMPLETED
Job for branch frombook completed.
Create branch using a timestamp
dx_ctl_js_branch -d Landshark5 -action create -container_name testcon -branch_name fromtime -timestampe "2018-09-19 10:10:12"
Starting job - JOB-9760
0 - 1 - 5 - 13 - 24 - 30 - 37 - 42 - 46 - 50 - 58 - 76 - 77 - 80 - 95 - 100
Job JOB-9755 finished with state: COMPLETED
Job for branch fromtime completed.
Delete branch
dx_ctl_js_branch -d Landshark5 -action delete -container_name testcon -template_name testdx -branch_name new_branch
Starting job - JOB-9754
0 - 100
Job JOB-9754 finished with state: COMPLETED
Job for branch new_branch completed.
Activate branch
dx_ctl_js_branch -d Landshark5 -action activate -container_name testcon -branch_name new_branch
Starting job - JOB-9746
5 - 10 - 72 - 92 - 94 - 100
Job JOB-9746 finished with state: COMPLETED
Job for branch new_branch completed.
Activate branch using container and template name
dx_ctl_js_branch -d Landshark5 -action activate -container_name testcon -template_name testdx -branch_name now_branch
Starting job - JOB-9750
5 - 10 - 72 - 92 - 94 - 100
Job JOB-9746 finished with state: COMPLETED
Job for branch now_branch completed.
Delphix