Skip To Content

Backup utility

The Backup utility creates a backup of your ArcGIS Server site configuration. The backup preserves information about your services and settings. It is stored as an .agssite file. Use the Restore utility if you need to apply the backup to return your site to its original state.

See Backing up and restoring your ArcGIS Server site configuration to learn more about the backup and restore capabilities of ArcGIS Server.

Parameters

ParameterDetails

-u

The name of an ArcGIS Server user who will execute the utility. The user must have the appropriate level of privileges to execute the action. If your site is configured with web-tier authentication, specify a built-in user, such as the primary site administrator account.

-p

The password of the user who is specified with the -u parameter.

-s

The URL of the site, in one of the following formats:

  • https://gisserver.domain.com:6443
  • https://webadaptorhost.domain.com/webadaptorname
If your site is configured with web-tier authentication, you'll need to specify the local URL to your site.

-f

The path to a folder where the backup will be placed as an .agssite file. The ArcGIS Server account must have write access to this folder.

-h

Prints help for the utility.

--ignoressl

An optional parameter to disable SSL certification verification.

-a

An optional property that specifies the location of a properties file, for instance, C:\temp\backup.properties. The properties file must contain the following properties:

  • User name
  • Password
  • Site
  • Folder

site=https://gisserver.domain.com:6443/arcgis
username=administrator
password=securepassword
folder=C:\\temp

Examples

The following example creates a backup in a folder named mybackups:

<Python installation location>\python.exe "C:\Program Files\ArcGIS\Server\tools\admin\backup.py" -u admin -p admin -s http://myserver:6080 -f "d:\mybackups"

In this topic
  1. Parameters
  2. Examples