Select to view content in your preferred language

ArcGIS Portal webgisdr Output File?

337
5
Jump to solution
02-25-2025 09:37 AM
AndreaB_
Frequent Contributor

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

0 Kudos
2 Solutions

Accepted Solutions
Laura
by MVP Regular Contributor
MVP Regular Contributor

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. 

View solution in original post

0 Kudos
JakeSkinner
Esri Esteemed Contributor

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:

JakeSkinner_0-1740588681541.png

 

View solution in original post

0 Kudos
5 Replies
Laura
by MVP Regular Contributor
MVP Regular Contributor

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. 

0 Kudos
JakeSkinner
Esri Esteemed Contributor

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:

JakeSkinner_0-1740588681541.png

 

0 Kudos
AndreaB_
Frequent Contributor

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.

0 Kudos
Joshua-Young
Frequent Contributor

@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?

"Not all those who wander are lost" ~ Tolkien
0 Kudos
JakeSkinner
Esri Esteemed Contributor

@Joshua-Young, yes it gets overwritten each time.