- URL:
- https://<root>/exportSite
- Methods:
POST
- Required Capability:
- Access allowed only with the default administrator role
- Version Introduced:
- 10.2
Description
The export
operation exports the site configuration to a specified location. The exported file includes, and excludes, the following information:
Information included in the backup | Information not included |
---|---|
|
|
Protecting information not included in the backup
As noted above, some information is not included in the backup of your site. It's recommended you manually back up this information at the same time you run the backup utility. When you restore the site, manually copy or move this information back to the site, for example:
These directories will contain the cache tiles and the tiling scheme file conf.xml. The cache directories may also contain a file geodatabase status.gdb that contains information about which tiles have been built. When you restore the site, move or copy the information back to the original arcgiscache directory.
If the data used by your services was not copied to a folder on the server when publishing, it will not be included in the backup. Manually back up your data directories, geodatabases, databases, source tables, and any other information used by your services. When you restore the site, verify ArcGIS Server has permissions to access your data locations. For more information, see Making your data accessible to ArcGIS Server.
When the site is running, logs are created and distributed among all ArcGIS Server machines participating in your site. When you restore the site, move or copy the information back to the original logs directory.
After you restore a site, you continue using the primary site administrator name and password that was in place when performing the restore. This is true even if you restore a site whose primary site administrator had been disabled. It's recommended you record the user name and password and store it in a secure location before performing the restore.
When the site is running, various service statistics are recorded. When you restore the site, move or copy the information back to the original statistics directory.
If your site includes one or more ArcGIS Web Adaptors, you'll need to reconfigure them with your site after performing the restore.
Request parameters
Parameter | Details |
---|---|
(Optional) | A folder path, accessible to ArcGIS Server, where the exported site configuration will be written. If the Example
|
| Introduced at ArcGIS Enterprise 11.1. This parameter validates the folder path specified in the Values: |
| The response format. The default response format is Values: |
Example usages
The following is a sample POST request for the export
operation that demonstrates defining the location
parameter and validating that it is accessible:
POST /webadaptor/admin/exportSite HTTP/1.1
Host: machine.domain.com
Content-Type: application/x-www-form-urlencoded
Content-Length: []
location=\\server\share\backup&validate=true&f=pjson
The following is a sample POST request for the export
operation that demonstrates leaving the location
parameter undefined:
POST /webadaptor/admin/exportSite HTTP/1.1
Host: machine.domain.com
Content-Type: application/x-www-form-urlencoded
Content-Length: []
location=&validate=false&f=pjson
JSON Response examples
Examples without validation
The following is a sample response for a request that defined the location
parameter:
{
status: "success",
location: "\\server\share\backup\Jan-15-2023_11-50-33.agssite"
}
The following is a sample response for a request that did not define the location
parameter.
{
status: "success",
location: "https://machine.domain.com/webadaptor/admin/uploads/i33d579b6-d8a8-4886-a1bc-671ae52e7a00"
}
Examples with validation
The sample response below is for a request that defined the location
parameter and set validate
to true
. This example demonstrates a success response, meaning that the path was accessible to ArcGIS Server:
{
"status": "success"
}
The sample response below is for a request that defined the location
parameter and set validate
to true
. This example demonstrates a failure, meaning that the path was not accessible to ArcGIS Server:
{
"status": "error",
"messages": ["Unable to write to \\server\share\backup. Verify the location is accessible and the service account running ArcGIS Server can write to it."],
"code": 500
}