Hi all,
I'm just starting to experiment with the webgisdr tool. I see you can get an output file https://enterprise.arcgis.com/en/portal/11.1/administer/windows/webgisdr-tool-output-file.htm. "The WebGISDR tool supports an output file that will record the results of the operation as JSON that can be parsed to determine whether the backup is located, if any components failed, and how long each component took."
However, how do you get it to export this file? In cmd, I tried:
webgisdr.bat --export --file .\webgisdr.properties --output E:\backups\outputfile
But it says "The specified output file path is not a file". Is my syntax wrong? Do I need to create an empty file first (what type)?
My next question will be - how do I parse the output file by using the ConvertFrom-Json cmdlet in PowerShell or Python? (as mentioned in the Esri link). Does anyone have example or info on that to share?
Similar community post: https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-portal-webgisdr-output-file/m-p/148...
Thank you!
Andrea
Solved! Go to Solution.
I got my webgisdr up and running with automation from this artcile: https://community.esri.com/t5/arcgis-enterprise-documents/automate-arcgis-enterprise-backup/ta-p/914...
@JakeSkinner from there may be able to get you some answers.
Hi @AndreaB_, add an extension to the file name. Ex:
webgisdr.bat --export --file .\webgisdr.properties --output E:\backups\outputfile.json
I recommend to then open the JSON file in Notepad++ to view the results. Ex:
I got my webgisdr up and running with automation from this artcile: https://community.esri.com/t5/arcgis-enterprise-documents/automate-arcgis-enterprise-backup/ta-p/914...
@JakeSkinner from there may be able to get you some answers.
Hi @AndreaB_, add an extension to the file name. Ex:
webgisdr.bat --export --file .\webgisdr.properties --output E:\backups\outputfile.json
I recommend to then open the JSON file in Notepad++ to view the results. Ex:
Thank you @JakeSkinner that was exactly what I needed and exactly what I couldn't find in any documentation or google searching! I'm glad it was a quick fix. Thanks again.
@JakeSkinner does WEBGISDR overwrite the JSON file at each run, or do I need to pass in a unique file name each time WEBGISDR executes?
@Joshua-Young, yes it gets overwritten each time.