Job - copyJob
Job - copyJob
Description :
This command copies a job. jobKey is a handle to the job you want to copy. copyName is the new name of the copied job. jobGroup is the fully qualified path to the destination job group. If you want the job to remain in the same group, you still need to include the jobGroup argument. This command returns the handle of the copied job.
Return type : DBKey
Command Input :
Variable Name | Variable Type | Description |
|---|---|---|
jobKey | DBKey | Handle of the job you want to copy. |
jobGroup | String | Fully qualified path to the destination job group. |
copyName | String | New name of the copied job. |
Example
The following example shows how to copy a job.
Script
JOB_KEY=`blcli SnapshotJob getDBKeyByGroupAndName /snapshots tstSnap`
NEW_JOB_KEY=`blcli Job copyJob $JOB_KEY /myNewJobs myCopiedJob`
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*