Last modified November 7, 2024

duplicateCloneJob

Function duplicates the given Clone Job’s configuration as a new Clone Job.
Parameter name Type Description Possible values Example
_id String REQUIRED Clone Job ID.   _id=5fcac5c16852ef21a56c9362

Example Call JETAPI

jetbackup5api -F duplicateCloneJob -D "_id={$CLONEJOB_ID}"
success: 1 message: Clone Job Duplicated Successfully system: version: 5.3.3 version_panel: 5.3.3 tier: EDGE type: cPanel retry_ms: 0 disableui: dr: agreement_panel: agreement: licenseIssue: data: _id: 650b5b54b10f4943c95560c2 name: clone - 16952430929669 destination: 0: 6505d08d5cde724d10441b52 destination_details: 0: _id: 6505d08d5cde724d10441b52 name: clone owner: 64f37d695aa01f55661b38f2 owner_name: root type: Clones job_type: 2 count: 2 hidden: readonly: disabled: disk_limit: 95 disk_usage: threads: 10 update_date: 2023-09-16T15:58:08+00:00 dr: reindex: running: options: password: JB|HIDDEN|******************** privatekey: host: port: timeout: 60 rsyncpreferip: 0 rsyncbwlimit: 0 internalprivatekey: 6505d08d5cde724d10441b52.rsa type: 1 contains: 511 options: 0 state: 0 owner: 64f37d695aa01f55661b38f2 owner_name: root next_run: 2023-10-02T00:00:00+00:00 last_run: running: disabled: 1 time: 2000 monitor: ranfor: 0 notran: 0 manually_retain: 0 exclude_list: schedules: 0: _id: 650b5b54b10f4943c95560c3 name: monthly - 16952430921672 type: 4 next_run: 2023-10-02T00:00:00+00:00 retain: 0 hooks: default_package: default_owner: suspend_after: 0 filters: 0: 0: 6505d92d8a390273c33702e3

Example Call HTTP

https://hostname.example.com:2087/cpsess##########/cgi/addons/jetbackup5/api.cgi?function=duplicateCloneJob&_id={$CLONEJOB_ID}