Last modified November 7, 2024

reindexDestinations

This function resyncs the data from the Destination to JetBackup given the Destination ID.
Parameters
Parameter name Value Description Possible Values Example
_id String Required The id of the destination.   _id=5f7bdce1ae2dfb2 8835cb4e2
account_id String Optional The Account ID of a specific Account you want to reindex. Will only reindex the single account with the specified ID on the destination.   account_id=5f80d3dabae 35a1a133d0662>
account_username String Optional The Account Username of a specific Account you want to reindex. Will only reindex the single account on the destination by exact name match. Useful if JetBackup hasn't indexed the account before.   account_username= account123>
by_snap Boolean Optional Allows JetBackup to reindex all snapshots using the jetbackup.index file in each snapshot folder   by_snap=1>
Returns
Parameter name Value Description Possible Values Example
_id String id of the Queue process   _id=5f80d3dabae35a1a133d0662>

Example Call JETAPI

jetbackup5api -F reindexDestination -D "_id={$DESTINATION_ID}&account_username={$USERNAME}&by_snap=1"
success: 1 message: Destination Reindex added to the queue 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: 6504c114f7aa3d46db0c75c4 owner: 6503d48bfc45b1addf0a9632 owner_name: root created: 2023-09-15T20:39:48+00:00 started: ended: type: 8 items: 0 items_completed: 0 finalize: status: 0 can_rerun: rerun_failed: log_id: 6504c114a7a8a66aa50fa3a2 status_time: progress: execution_time: 0 actual_time: 0 log_file: /usr/local/jetapps/var/log/jetbackup5/queue/8_6504c114f7aa3d46db0c75c4.log log_contents: data: id: 6503eec8ebbf07708d06f1d2 name: s3 account: user

Example Call HTTP

https://hostname.example.com:2087/cpsess##########/cgi/addons/jetbackup5/api.cgi?function=reindexDestination&_id={$DESTINATION_ID}&account_username={$USERNAME}