Restore utility

This utility restores your site configuration based on a backup that you have previously made using the Backup utility. See Backing up and restoring your ArcGIS Server site configuration to learn about the backup and restore capabilities of ArcGIS Server.

This utility always uses token-based authentication.

Parameters

Parameter

Details

-u

The name of a user who has administrator privileges to the ArcGIS Server site. This doesn't need to be the same user who created the backup.

-p

The password of the account specified in the -u parameter.

-s

The URL of the site, in the following format:

  • http://gisserver.domain.com:6080

You cannot perform the restore through the Web Adaptor URL.

-f

The absolute path of the .agssite backup file to be restored. The ArcGIS Server account must have permission to read from this location.

-r

Path to a folder where the utility will generate its report. The ArcGIS Server account must have write permissions to this folder. The report is always written to the console, regardless of whether you provide this path.

-h

Prints help for the utility.

Examples

The following example restores a backup from a file named Jan-24-2013_13-25-23.agssite.

<ArcGIS Server installation location>/arcgis/server/tools/python <ArcGIS Server installation location>/arcgis/server/tools/admin/restore.py -u admin -p admin -s http://gisserver.domain.com:6080 -f /tmp/mybackups/Jan-24-2013_13-25-23.agssite -r /tmp/mybackups
9/1/2015