First we need to run the Xray Export REST API on the On-prem Artifactory instance by mentioning the required configurations to be transferred in the input JSON file. Below I have exported all the configurations by providing “"export_all" : true” as input to the Xray Export REST API.
$curl -uadmin:${PASSWORD} -X POST https://On-prem-server/xray/api/v1/configuration/export -H 'Content-Type: application/json' -d '{"export_all" : true}'It will generate an exported zip file under the below Xray path of the On-prem instance with all the configurations.
“/opt/jfrog/xray/var/work/server/backup/config/jfxr@0123abc_xray_exported_config_XXXX.zip”