In order to be able to run the validation process from the command line, you need to ensure that there is already at least one destination configured through Jetbackup. You can create new remote destinations from both the command line and also from the WHM > Plugin > JetBackup > Destination interface. It's easier to use the WHM interface for this purpose. (Please make sure that you are logged in as root, otherwise, you will not be able to see the destination tab on the JetBackup plugin page).
Please refer to this link for more information:
After adding a destination to JetBackup's configuration you need to run this command to see the unique ID associated with the destination:
/usr/bin/jetapi backup -F listDestinations
The output looks similar to this:
name: remote box
time_parsed: 12:00 AM
The only line we are interested in is the _id line which has been highlighted.
Now you need to grab that id for the destination you want to validate and run the following command with the ID value that you just saved replaced inside the single quote section at the end of the command:
/usr/bin/jetapi backup --func validateDestination -D '_id=5f2c046ba9213421421aa637dd02'
Running the validation processes from the command line is particularly valuable since it would allow you to troubleshoot potential validation issues more efficiently by tracing the validation process using tools like starce:
/usr/bin/strace -T -f -o /tmp/jet-validtion.strace /usr/bin/jetapi backup --func validateDestination -D '_id=5f2c046ba9213421421aa637dd02'