Utilities installed with ArcGIS Data Store provide the data store administrator tools to manage data stores. This page describes the utilities and provides syntax and examples.
All utilities must be run on the ArcGIS Data Store machine. You can find the utilities in the <ArcGIS Data Store installation directory>/datastore/tools directory.
You can type the utility name followed by --help to get syntax assistance.
allowconnection
This utility is used with relational data stores.
For security reasons, all connections to the data store are made through the GIS Server site by default. If you want to open a relational data store for connections from an additional machine, you can use the allowconnection utility.
You can run the allowconnection utility on the primary relational data store machine only.
Syntax
allowconnection <host name> <username> [<database>]
Specify the name of the computer you want to allow to connect to the relational data store (host name) and one of the database accounts used by the data store (username): either the data store administrator, replica owner, geodatabase administrator, or managed user (the user who publishes feature layer data), which you can obtain using the listadminusers or listmanageduser utility. You can also specify the name of the primary relational data store database but, since there is only one, this value is optional.
Example
In this example, a connection is allowed from the workcom computer to the relational data store when connecting as the hqo.n_1E7 managed user.
./allowconnection.sh workcom hqo.n_1E7
backupdatastore
This utility is used with all data store types.
If you need to create a relational data store backup between scheduled backup times, use the backupdatastore utility. Use this utility to manually create a full backup prior to upgrading the data store or before making a large number of changes to the data store.
The first time you run the backupdatastore utility for a tile cache data store after setting a backup location, backup copies are made of all existing tile cache data store databases. Subsequent use of the backupdatastore utility creates backup copies of any tile cache data store databases created since the last time you ran the utility.
The first time you run the backupdatastore utility for a spatiotemporal big data store after setting a backup location, a full backup is created. Because spatiotemporal big data stores can be very large, subsequent use of the backupdatastore utility creates a backup file containing only the changes since the initial full backup.
The backupdatastore utility creates a full backup of the object store for video service data. Feature layer query caches are not included in the backup file.
You can run the backupdatastore utility on the primary relational data store machine. This utility can be run from any machine that is a member of your tile cache or spatiotemporal big data store.
In all cases, be sure your backup location is large enough to accommodate your backups. To change data store backup locations, use the configurebackuplocation utility.
For more information about ArcGIS Data Store backups, see Manage data store backups.
Syntax
backupdatastore [<backup file name>] [--store {relational | tileCache | spatiotemporal | graph | object}] [--location <backup_arguments>] [--prompt {yes | no}]
Arguments for the --location parameter are as follows and must be separated with semicolons (;):
- type=—Valid types are fs (file share), s3 (Amazon Simple Storage Service (S3) bucket), or azure (Microsoft Azure Blob storage container).
- name=—If you assigned names to the backup locations you configured for your data store, you can use the location name to specify where you want backup files created when running the backupdatastore utility.
- location=—If you do not specify a backup location name, you must specify the backup type and location. For file shares, provide the file path. For S3 buckets, provide the bucket name. For Azure Blob storage containers, provide the container name.
Examples
In this example, a full backup file named project1bu is created in the backup location you specified for the data store using the backupdatastore utility. By default, backups are created for relational data stores; therefore, in the following example, a relational data store backup is created.
./backupdatastore.sh project1bu You are going to back up the data store. This could take some time, depending on the size of your data store. Please do not interrupt the process once it has started. Do you want to continue (Yes or No)?Yes
In this example, a backup file named localbu5 is created for the spatiotemporal big data store in a file share location, which you named gadbu when you configured the backup location.
./backupdatastore.sh localbu5 --store spatiotemporal --location 'name=gadbu' You are going to back up the data store. This could take some time, depending on the size of your data store. Please do not interrupt the process once it has started. Do you want to continue (Yes or No)?Yes
In this example, a backup is created of a spatiotemporal big data store in an Azure Blob storage container named blob4backups, and the backup file created is named spds311016:
./backupdatastore.sh spds311016 --store spatiotemporal --location 'type=azure;location=blob4backups' You are going to back up the data store. This could take some time, depending on the size of your data store. Please do not interrupt the process once it has started. Do you want to continue (Yes or No)?Yes
changebackuplocation
Legacy:
Esri has deprecated the changebackuplocation utility. It is still present to allow existing scripts to continue working. Use the configurebackuplocation utility.
changedatastoremode
This utility is used with relational and spatiotemporal big data stores.
The changedatastoremode utility allows you to place a relational data store in read-only mode while you perform maintenance on the data store. For example, if you need to perform a maintenance task that will cause the data store to restart, such as changing the backup location from one drive to another drive or changing database properties, you can place the relational data store in read-only mode so no users are in the process of publishing or editing data when the data store restarts.
The changedatastoremode utility is also used to place the relational data store back in a read-write mode after you finish maintenance or after you add enough disk space to the primary data store machine to allow the data store to function properly in read-write mode.
You must run the changedatastoremode utility on the primary relational data store machine, not the standby machine.
Note:
If ArcGIS Data Store places your relational data store in read-only mode due to insufficient disk space, automatic backups are also disabled to avoid filling the disk further. Therefore, you must reset your automatic backup schedule using the updatebackupschedule utility after you place the relational data store back in read-write mode.
When your spatiotemporal big data store gets close to running out of disk space, ArcGIS Data Store places it in read-only mode to avoid data corruption. You can use the changedatastoremode utility to return a spatiotemporal big data store to read-write mode after you have added sufficient disk space to the spatiotemporal big data store machines.
Syntax
changedatastoremode {readonly | readwrite} [--prompt {yes | no}] --store {relational | spatiotemporal}
Examples
In this example, the relational data store is placed back in read-write mode, meaning clients can resume such activities as publishing hosted feature layers to ArcGIS Enterprise, editing data through a hosted feature layer, or adding CSV files to a map viewer.
./changedatastoremode.sh readwrite --store relational --prompt no
To place a spatiotemporal big data store in read-write mode, specify spatiotemporal with the --store option as shown in the following example:
./changedatastoremode.sh readwrite --prompt no --store spatiotemporal
changedbproperties
This utility is used with relational, tile cache, and spatiotemporal big data stores.
The changedbproperties utility allows you to change various properties depending on the type of data store you run it against.
Syntax
changedbproperties --store {relational | tileCache | spatiotemporal} [configuration options]
The following are supported configuration options:
- disk-threshold-readonly—Used with the relational data store only.
This setting controls when a relational data store will be placed in read-only mode to avoid loss of data due to insufficient disk space. Specify sizes in MB. The default disk space value is 1024 MB.
- max-connections—Used with the relational data store only.
Use this parameter to specify the maximum number of connections allowed to a relational data store. Relational data stores accept up to 150 connections by default. You can use the --max-connections property with the changedbproperties utility to change the number of connections allowed.
When determining how many connections your data store requires, take into consideration that ArcGIS Data Store internal processes can take up to five connections. Also consider how many concurrent connections your ArcGIS Data Store machine can accept and continue to perform well. If the machine running ArcGIS Data Store doesn't have a lot of memory, you may need to decrease the number of connections allowed.
The number specified cannot be less than 10. When you change the maximum number of connections allowed, the number is changed on both the primary and standby data store machines. This parameter is not supported for spatiotemporal big data stores or tile cache data stores.
- pitr—Used with the relational data store only.
This setting indicates whether ArcGIS Data Store creates incremental backups of the relational data store, thereby allowing you to recover the relational data store to a point in time. Possible inputs for this option are enable or disable. Point-in-time recovery is disabled by default.
Note:
You must enable point-in-time recovery if you will use the webgisdr utility to create incremental backups of your ArcGIS Enterprise deployment.
- enablessl—Used with the relational and tile cache data stores only.
This parameter controls use of the Transport Layer Security (TLS) protocol when populating the tile cache data store and for communication between the relational data store and the hosting server.
Supported arguments for the enablessl parameter are as follows:
- true—This is the default setting. This means that the Transport Layer Security protocol will be used when writing scene layer data to the tile cache data store when you specify --store tileCache and when communicating between the relational data store and hosting server when you specify --store relational.
- false—Specify false and --store tileCache to use HTTP communication from the hosting server when writing to the tile cache data store. Specify false and --store relational to use HTTP communication between the hosting server and relational data store.
- heap-size—Used with the spatiotemporal big data store only.
Use this parameter to change the amount of heap memory (in MB) used by a spatiotemporal big data store. By default, this type of data store will use half the RAM on the machine (up to 70 percent of free RAM) when it starts. You can change the heap size to an amount between 512 MB and 32,000 MB, but be sure the amount you specify does not exceed the amount available on the machine.
- rebalance—Used with the spatiotemporal big data store only.
By default, this parameter is set to true, which means data in a spatiotemporal big data store will distribute data to other machines if any one machine is unavailable. If you need to perform maintenance on one spatiotemporal big data store machine, such as upgrading it, you can temporarily shut off rebalancing by setting this parameter to false. The rebalance option will be suspended for the number of minutes set for the max-rebalance-off parameter.
- max-rebalance-off—Used with the spatiotemporal big data store only.
The setting for this parameter is used when you set the rebalance parameter to false. By default, max-rebalance-off is set to 60 minutes. That means if you temporarily shut off rebalancing, it will start again after 60 minutes. If you need more or less time than that to perform the maintenance task for which you suspended rebalancing, change the time setting for max-rebalance-off.
- prompt—When you run this utility, you are prompted to confirm the action you specified. If you automate the use of this utility, set the prompt parameter to no; otherwise, the script will not proceed until you answer the prompt.
Examples
The following sections include examples of using the options available with the changedbproperties utility.
Change the read-only threshold for the relational data store
By default, the relational data store is placed in read-only mode when free disk space drops to 1,024 MB. In the following example, there are other apps writing to the machine, so the administrator configures the relational data store to be placed in read-only mode sooner: when free disk space on the machine drops to 4,000 MB:
./changedbproperties.sh --store relational --disk-threshold-readonly 4000 You are changing the following database properties: ...disk space threshold to change relational data store into READONLY mode to 4000MB) Changing database configurations could cause the database to restart. Please do not interrupt the process once it has started. Do you want to continue (Yes or No)?Yes
Change the number of connections allowed to the relational data store
In this example, the number of maximum connections allowed to a relational data store is set to 100:
./changedbproperties.sh --store relational --max-connections 100 You are changing the following database properties: ...max number of connections to 100 (on all relational data store machines) Changing database configurations could cause the database to restart. Please do not interrupt the process once it has started. Do you want to continue (Yes or No)?Yes
Enable point-in-time recovery for the relational data store
By default, point-in-time recovery is disabled. In this example, point-in-time recovery is enabled for the relational data store:
./changedbproperties.sh --store relational --pitr enable You are changing the following database properties: ...enable point-in-time recovery for relational store Changing database configurations could cause the database to restart. Please do not interrupt the process once it has started. Do you want to continue (Yes or No)?Yes
Disable SSL
By default, the relational data store communicates with the hosting server over HTTPS. In this example, the enablessl parameter is used to configure the relational data store to communicate with the hosting server over HTTP.
./changedbproperties.sh --store relational --enablessl false You are changing the following database properties: ...disable ssl for relational store Changing database configurations could cause the database to restart. Please do not interrupt the process once it has started. Do you want to continue (Yes or No)?Yes
Change the heap size for the spatiotemporal big data store
By default, the spatiotemporal big data store uses half the RAM on the machine (and 70 percent of free RAM) when it starts. Decreasing the heap size could prevent the data store from starting. If you increase the heap size, do not specify a number that exceeds the amount of RAM available on the machine.
In this example, the heap size is set to 1,600 MB.
./changedbproperties.sh --store spatiotemporal --heap-size 1600 You are changing the following database properties: ...heap size for spatiotemporal store to 1600MB (on current machine) Changing database configurations could cause the database to restart. Please do not interrupt the process once it has started. Do you want to continue (Yes or No)?Yes
Pause rebalancing for the spatiotemporal big data store
In this example, the administrator needs to perform a brief maintenance procedure on one machine in a spatiotemporal big data store and does not want the data store to rebalance. To do this, the rebalance and max-rebalance-off options are used to suspend rebalancing for 30 minutes. After 30 minutes, the spatiotemporal big data store will automatically change rebalance to true.
Because must happen periodically, the administrator keeps the following statement in a script and sets the prompt option to no.
./changedbproperties.sh --store spatiotemporal --rebalance false --prompt no ./changedbproperties.sh --store spatiotemporal --max-rebalance-off 30 --prompt no
changeloglocation
This utility is used with all data store types.
If you do not want the data store to use the default error log file location of <ArcGIS Data Store directory>\arcgisdatastore\logs, you can run the changeloglocation utility to create error log files in a different directory.
The ArcGIS Data Store account must have write privileges to the folder you specify.
Syntax
changeloglocation <directory path>
Example
In this example, log files will be created in the local directory, ../datastorefiles/logs.
./changeloglocation.sh '../datastorefiles/logs'
changenosqldslocation
This utility is used with tile cache data stores.
Tile cache data stores can get large if you store a lot of high-resolution tiles in it. In those cases, you may want to move the data to another drive on the same server or to a shared location on a different server.
If you move the data to a shared directory, you must grant read and write permissions on the directory to the user running the ArcGIS Data Store process (Linux) or service (Microsoft Windows).
Syntax
changenosqldslocation <path> [--prompt {yes | no}]
Example
In this example, the databases that store scene layer caches will be created in a shared directory named dstorecache on machine server2.
./changenosqldslocation.sh /net/server2/dstorecache
changepassword
This utility is used with relational data stores.
ArcGIS Data Store randomly generates usernames and passwords for the database accounts used for relational data stores. If your site requires you to set your own passwords, obtain the passwords for data store accounts and run changepassword to reset passwords.
Use the listadminusers utility to get usernames and passwords for administrator users and the listmanageduser utility to get the username and password for the feature data owner.
The changepassword utility can be run on the primary relational data store machine only.
Syntax
changepassword <username> <new password> [--prompt {yes | no}]
Tip:
If you need to script password changes, include a flag to suppress the confirmation prompt, as in the following example:
changepassword gwi_n2Te0 Phfl4mp --prompt no
Example
In this example, the password is changed for user gwi_n2Te0 to Phfl4mp!.
./changepassword.sh gwi_n2Te0 Phfl4mp You are going to change the password for user gwi_n2Te0. Do you want to continue (Yes or No)?Yes
changestaginglocation
This utility is used with relational and tile cache data stores and graph stores.
When you restore your relational or tile cache data store, ArcGIS Data Store extracts the compressed backup files on a staging location. That means you must have a staging location that can accommodate this uncompressed data. If you have a lot of data in your relational or tile cache data store, set up a separate staging location and specify that for recovery.
Similarly, if you use the configurebackuplocation utility to define an S3 bucket or an Azure Blob storage container for relational, tile cache, or graph store backup files, the staging location is used to package the backup files before copying them into the cloud storage location.
Syntax
changestaginglocation <directory path>
Example
In this example, the designated staging location is /net/sanmarcos/rbustage.
./changestaginglocation.sh /net/sanmarcos/rbustage
configurebackuplocation
This utility is used with all data store types.
The configurebackuplocation utility allows you to specify the location where ArcGIS Data Store writes backup files for both scheduled backups and backups created with the backupdatastore utility. The configurebackuplocation utility also allows you to alter properties of a backup location and remove a backup location.
Relational data stores are created with a default, local backup location. To avoid data loss, configure a default backup location by registering a remote file share using the change option.
Tile cache data stores created in primary-standby mode have a default backup location; tile cache data stores created in cluster mode do not. In either case, use the configurebackuplocation utility with the register option to specify a shared network location, an Amazon Simple Storage Service (S3) bucket, or a Microsoft Azure Blob storage container to securely store tile cache data store backups. You cannot use a local drive for tile cache backup files if the data store is running in cluster mode.
Spatiotemporal big data stores, graph stores, and object stores are not created with a default backup location. Before you can begin creating backups, you must run the configurebackuplocation utility with the register option to specify a file share location, an Amazon Simple Storage Service (S3) bucket, or a Microsoft Azure Blob storage container for these backups.
Note:
You cannot use a local drive for spatiotemporal big data store backup files.
You can register a second backup location to store the backups you create using the backupdatastore utility. You can use a shared file directory, an S3 bucket, or an Azure Blob storage container for secondary backup locations.
For more information about ArcGIS Data Store backups, see Manage data store backups.
Syntax
configurebackuplocation --store {relational | tileCache | spatiotemporal | graph | object} --operation {change | register | unregister | list | setdefault} [--location "<backup_location_arguments>"] [additional options]
Required options include the following:
- --store {relational | tileCache | spatiotemporal | graph | object}—Specify the type of ArcGIS Data Store for which you're configuring or querying backup locations. The default value is relational.
- --operation {change | register | unregister | list | setdefault}—The default value is change. The following is an explanation of each argument:
- change—Use this argument to change any of the following:
- Specify a different shared file location for scheduled relational data store backups. The location set with the change argument is always the default backup location for relational data stores.
- Alter the name you assigned to the backup location.
- Update the authentication information you set for backup locations on Azure or S3. For S3, you can change the information you previously specified with the username and password options. For Azure, you can change the password value.
- register—Use this argument to register a backup location. The first backup location you define for a spatiotemporal big data store, graph store, or a tile cache data store running in cluster mode is set as the default backup location. When you register another backup location for a tile cache data store (primary-standby or cluster mode), spatiotemporal big data store, or graph store, a secondary backup location is registered.
When you specify the register argument with a relational data store, it always registers a secondary backup location. The secondary backup location can be used to store manual backups generated with the backupdatastore utility.
Note:
When you use the register argument, you must provide information for the --location option.
- unregister—Use this argument to remove a secondary backup location from a data store. If only one backup location is registered, you can use the unregister argument to completely remove the backup location for a tile cache or spatiotemporal big data store or a graph store.
- list—Lists all of the backup locations registered for the data store that you specify with the --store option. The list indicates the physical backup location, the backup location's name (if one was specified when you registered the location), and which one is registered as the default backup location.
- setdefault—If you have multiple backup locations for a graph store, tile cache data store, or spatiotemporal big data store, you can use setdefault to designate one of the backup locations as the default location. This location is where scheduled backups are written, and it is the default location used if you run the backupdatastore, listbackups, or restoredatastore utility without specifying a backup location.
- change—Use this argument to change any of the following:
When you register or change a backup location, use the --location option to specify where you want ArcGIS Data Store to store backup files. If you did not configure a backup name, use the --location option when you set a default backup location or remove a backup location.
For tile cache data stores or spatiotemporal big data stores, or to register a secondary backup location for a relational data store, specify the following arguments separated by a semicolon (;) and enclose the entire argument string in single quotation marks ('): --location "type=fs|s3|azure;location=<backup_location>;[name=<backup_location_name>];[username=<AWS_access_key_ID_or_Azure_account>];[password=<AWS_secret_access_key_or_Azure_account_key>];[endpointsuffix=<Azure_cloud_location> | region=<AWS_region>]".
An explanation of each of the arguments supported with the --location option is provided in the following list:
- type=—This argument is required. Specify what type of location to use for backups. You can specify s3 to store backups in an Amazon S3 bucket, azure to store backups in an Azure Blob storage container, or fs to store backups in a file share (this is the default).
- location=—This argument is required. For file shares, specify the file path. For Amazon S3 buckets, specify the bucket name and path to the bucket. For Blob storage containers, specify the container name and path to the container.
- name=—You can assign a name to the backup location. For example, if your backup location is a file path, such as \\sharedserver_sharedfolders_datastorebackups, you can designate a name for this location, such as dsbackups. When you run the backupdatastore, listbackups, or restoredatastore utility, provide this name instead of the full path.
If you do not provide a name when you configure the data store backup location, ArcGIS Data Store assigns a default name.
- username=—This argument is required if your backup location is an S3 bucket or a Blob storage container. For S3 buckets, provide the access key ID for your Amazon Web Services (AWS) account. For Azure Blob storage containers, provide the name for the Microsoft Azure storage account that can access the Blob storage container.
- password=—This argument is required if the backup location is an S3 bucket or a Blob storage container. For S3 buckets, provide the secret key for your AWS account. For Azure Blob storage containers, provide the key for the Azure account you specified with the username argument.
- endpointsuffix=—This argument allows you to indicate where your Azure Blob storage container is located. By default, the endpointsuffix is assumed to be core.windows.net. If your container is in the Microsoft Azure Government cloud environment, set endpointsuffix=core.usgovcloudapi.net. If your container is in a private cloud, set endpointsuffix to the EndpointSuffix of your Azure private cloud. This argument is only used if you store your backups in an Azure Blob storage container.
- region=—This argument is required if the backup location is an S3 bucket. You must supply the region code. For example, set the region to ap-southeast-2 if the bucket is deployed in the Asia Pacific (Sydney) region. Consult AWS documentation for region codes.
Additional options you can provide with the configurebackuplocation utility are as follows:
- --force {true | false}—Used only with relational data stores, this option allows you to change the default backup location even if the existing default backup location is unavailable.
When you change the default backup location for a relational data store, ArcGIS Data Store copies the existing backup files from the old location to the new location. If ArcGIS Data Store cannot access the old location, it cannot copy the files. In previous releases, this would cause the configurebackuplocation tool to fail. If you want to proceed with changing the default backup location without copying existing backup files, specify --force true.
The default value for this option is false, which means you cannot change the default backup location if ArcGIS Data Store cannot access the existing default location.
- --prompt {yes | no}—The default value is yes.
Examples
The following sections provide examples of changing, setting, or listing backup locations for data stores.
Change the default backup location for the relational data store
In the first example, the backup location for a relational data store is set to a directory named fsdata_bu on a machine named myshare.
./configurebackuplocation.sh --operation change --store relational --location "type=fs;location=/net/myshare/fsdata_bu" You are going to change the backup location of the data store. Existing backups will be copied to the new location and it could take a few moments. Please do not interrupt the process once it has started. Do you want to continue (Yes or No)? Yes
Add a backup location for the relational data store
In this example, a second backup location on Azure is registered for the same relational data store.
./configurebackuplocation.sh --operation register --store relational --location "type=azure;location=mybackups; name=secondrelloc;username=myazureaccountlogin;password=zpw4myazureaccount" You are going to change the backup location of the data store. Existing backups will be copied to the new location and it could take a few moments. Please do not interrupt the process once it has started. Do you want to continue (Yes or No)? Yes
Set a backup location for a graph store
In this example, a backup location on a network share is registered for a graph store. A name, fshare, is assigned to the backup location.
./configurebackuplocation.sh --operation register --store graph --location "type=fs;location=/net/sharedmachine/g_bu;name=fshare"
Add backup locations and set a default location
In this example, a second backup location is specified for the spatiotemporal big data store. The additional backup location is in Azure storage.
./configurebackuplocation.sh --operation register --store spatiotemporal --location "type=azure;location=myblobs; name=mazloc;username=myazureaccountlogin;password=zpw4myazureaccount"
In this example, a second backup location in the Europe (Spain) region on AWS is specified for the same spatiotemporal big data store. A name, awsloc, is assigned to the backup location.
./configurebackuplocation.sh --operation register --store spatiotemporal --location "type=s3;location=mybucket;name=awsloc; username=abcdefg1234567;password=z9y8x7w6v5u4t3s2r1q0;region=eu-south-2"
In this example, the S3 bucket is set as the default backup location for the spatiotemporal big data store using the backup location's name (awsloc).
./configurebackuplocation.sh --operation setdefault --store spatiotemporal --location "name=awsloc"
Obtain a list of all backup locations for a data store
In this example, all backup locations for the spatiotemporal big data store are listed.
./configurebackuplocation.sh --operation list --store spatiotemporal Backup locations for spatiotemporal big data store: ================================================================ Name Type Location isDefault ================================================================ fsshare fs /net/sharedmachine/ge_bu false awsloc s3 mybucket true mazloc azure myblobs false
configuredatastore
This utility is used with all data store types.
After you install ArcGIS Data Store, you can run the configuredatastore utility to create a data store and register it with a GIS Server site. You can create the following types of data stores using this utility:
You can also run the configuredatastore utility to upgrade a data store after updating the ArcGIS Data Store software on all machines in the data store.
Syntax
configuredatastore <ArcGIS Server admin URL> <ArcGIS Server administrator> <ArcGIS Server administrator password> <data directory> [--stores {relational | tileCache | spatiotemporal | graph | object}] [--mode {singleInstance | primaryStandby | cluster}]
- <ArcGIS Server admin URL>—This is the GIS Server site that is used or will be used as the ArcGIS Enterprise hosting server. The ArcGIS Server admin URL is in the format https://gisserver.domain.com:6443.
Note:
Even if the GIS Server site uses a web adaptor or load balancer, you must provide the URL in the aforementioned format.
- <ArcGIS Server administrator>—Provide the username for a built-in (not organization-specific) user who has administrator privileges in the GIS Server site.
- <ArcGIS Server administrator password>—Provide the password for the account used above.
- <data directory>—The data directory is the location on the local machine where you want the data store files to be created.
- {relational | tileCache | spatiotemporal | graph | object}—Specify the type of data store to create. Though it is not recommended, you can configure more than one type of data store on the same machine by specifying each store type separated by a comma (no spaces). For example, to configure both relational and tile cache data stores on the same machine with a shared data store directory, specify --stores relational,tileCache. Esri strongly recommends that you run spatiotemporal big data stores and graph stores on machines separate from other data stores or software. Failing to do so can result in poor performance, or even render the data store unusable.
- --mode—This optional option applies to tile cache data stores, object stores, and graph stores only. By default, tile cache data stores, graph stores, and object stores are created in primaryStandby mode.
Tile cache data stores created in primaryStandby mode can contain two machines. The standby tile cache data store contains the same data as the primary. If the primary data store fails, the standby becomes the primary tile cache data store. If you need to store large numbers of scene layer caches and, therefore, you need your tile cache data store to scale to include three or more machines, create a tile cache data store in the cluster mode. You can use the mode option to switch the tile cache data store from primaryStandby mode to cluster mode.
Object stores created in primaryStandby mode can contain only one machine currently. If you need multiple machines in the object store to provide high availability, deploy the object store in cluster mode. When used in cluster mode, the object store must contain at least three machines. See Add machines to a data store for details.
Configure a specific type of data store
You specify the type of data store to create using the following settings with the --stores option:
- relational
- tileCache
- spatiotemporal
- graph
- object
To configure more than one data store type on the same machine, separate the types with a comma. For example, to configure both a relational and tile cache data store on the same machine, specify --stores relational,tileCache.
Note:
Data stores configured on the same machine compete for memory and other resources, negatively affecting performance and possibly causing the data stores to stop working. This is especially true for spatiotemporal big data stores, graph stores, and object stores; do not configure a spatiotemporal big data store, graph store, or object store on the same machine as another data store or other ArcGIS component.
If you script the creation of multiple spatiotemporal big data store machines, one spatiotemporal big data store machine must be manually configured with the GIS Server site before you can script the creation of additional spatiotemporal big data store machines. Include wait times in your script to be sure the additional spatiotemporal big data store machines are not added at the same time.
See Create a data store for more information.
Configure data stores after updating ArcGIS Data Store installations
As part of upgrading ArcGIS Data Store, you must reconfigure the existing data store machines. After you install a new version of ArcGIS Data Store over the existing ArcGIS Data Store on every data store machine, you can log in to any machine in a data store and run the configuredatastore utility to finish upgrading that particular data store. For example, you can run configuredatastore on the primary relational data store machine, and the standby machine will also be upgraded.
If a machine contains both a relational and tile cache data store, specify --stores relational,tileCache when you run the configuredatastore utility, and it updates all the machines in both data stores.
To reconfigure updated spatiotemporal big data store machines, log on to any of the machines in the spatiotemporal big data store and run the configuredatastore utility. This updates all machines in the spatiotemporal big data store.
If you have not installed the new version of ArcGIS Data Store on all machines, configuration cannot proceed.
See Upgrade ArcGIS Data Store for more information.
Changing tile cache data store mode
To determine the current mode set for a tile cache data store, run the describedatastore utility on the tile cache data store machine.
If you need to change the tile cache data store mode from primaryStandby to cluster mode, run the configuredatastore utility with the --mode option set to cluster.
Note:
You can use the --mode option to specify the tile cache data store, object store, or graph store mode when creating the data store or to change the mode of the tile cache data store from primaryStandby to cluster mode, but you cannot change the mode when upgrading a tile cache data store, you cannot change the tile cache data store mode from cluster to primaryStandby, and you cannot change the mode of an object store or graph store.
Examples
In this example, a data store for hosted feature layer data (relational data store) is created. The URL for the GIS Server site that will use the data store is https://gisserver.domain.com:6443, the site administrator username and password are admin and Iph33l$ik, respectively, and the data directory for the data store is /dstore/data.
./configuredatastore.sh https://gisserver.domain.com:6443 admin Iph33l$ik /dstore/data --stores relational
In the following example, an existing tile cache data store (primary-standby) is changed to cluster mode:
./configuredatastore https://gisserver.mydomain.com:6443 portaladmin S00perSecret dsstore/scenedata --stores tileCache --mode cluster
deletebackup
This utility is used with relational data stores and object stores.
The deletebackup utility allows you to delete backup files you created for relational data stores or object stores. First, run the configurebackuplocation utility with the --operation option set to list to get a list of all backup locations configured for the data store. Next, run the listbackups utility with one of the locations to see the names and creation times of the backups in that location. Repeat that step for every backup location. You can then run the deletebackup utility to delete the backup files you no longer need. You must run deletebackup separately for each location from which you want to delete backup files.
Note:
You can only delete backups that are not required to recover your data store. For example, you cannot delete the most recent full backup of a relational data store.
Syntax
deletebackup <backup name> [--store {relational | object}] [--location "<backup-location>"] [--prompt {yes | no}]
Example
In the following example, the relational data store backup named featuresMarchbu is deleted from the default backup location.
./deletebackup.sh featuresMarchbu --store relational You are attempting to delete backup 'featuresMarchbu'. This operation is irreversible. Do you wish to continue (Yes or No)?yes Operation completed successfully
In this example, the june-videobu of the object store is deleted from the backup location named videobucket.
./deletebackup.sh june-videobu --store object --location "videobucket" You are attempting to delete backup 'june-videobu'. This operation is irreversible. Do you wish to continue (Yes or No)?yes Operation completed successfully
describedatastore
This utility is used with all data store types.
The describedatastore utility allows you to see the following information about an ArcGIS Data Store installation:
- The types of data store installed on the machine (listed under Available ArcGIS Data Stores)
Note:
If a data store is installed on the machine but not configured, it will show up as an available ArcGIS Data Store, but no additional information will be returned for that data store type.
- The software release number for the ArcGIS Data Store installation
- The staging location used by the data store for restoring data
- The log file location for the data store
- The amount of available disk space left on the machine where ArcGIS Data Store is installed
- The free disk space threshold at which a relational and spatiotemporal big data stores will be placed in read-only mode and tile cache data store will be stopped
- The default backup location used by each type of data store
- Whether the relational or tile cache data store backup location is on a network share
- How often a backup is created of the data store (Backup schedule)
- How many days relational data store backup files are retained and whether you can restore the relational data store to a specific point in time
- Whether or not the data store is running (Data store status)
- Whether or not SSL communication is enabled on the relational data store
- The date and time that the standby graph store, relational data store, or tile cache data store (primary-standby mode) became the primary data store (Last failover); this property is not displayed if fail over has never occurred
- The names of the machines that participate in the relational or tile cache data store (Member machines)
- Maximum connections allowed to a relational data store
- The URL of the GIS Server site with which the data store is registered (Owning system URL)
- The URL of the portal that is using the GIS Server site as its hosting server (Portal URL)
- The number of current feature layer connections to the relational data store
- A list of all machines currently participating in the spatiotemporal big data store (Machines in spatiotemporal cluster)
- The machine within the spatiotemporal big data store that is currently designated the coordinating machine (Current coordinator in cluster)
- A list of all machines in the tile cache or spatiotemporal big data store cluster or in a graph or object store (Registered <data store type> machines); shows all machines regardless of their status
- The deployment mode configured for a tile cache data store, object store, or graph store
- Whether a relational or spatiotemporal big data store is in read-write or read-only mode (Data Store mode)
Syntax
describedatastore
Example
The describedatastore utility returns general information that applies to all data stores on a machine and returns separate sections that contain information specific to each type of data store.
You should have different data stores on different machines, but to allow you to see the information returned for each type, the following output shows a machine that has all ArcGIS Data Store types on the same machine. The first section (General Information) is always returned. The data store sections returned by describedatastore vary depending on what type of data store is present on the machine.
./describedatastore.sh Available ArcGIS Data Stores ============================================================== Relational Data Store Tile Cache Data Store Spatiotemporal Big Data Store Graph Store Object Store General Information of ArcGIS Data Store on machine.domain.com ============================================================== ArcGIS Data Store release....11.2.0.1234 Staging location............./arcgis/datastore/staging Log location................./arcgis/datastore/logs Free disk space..............174.00GB Threshold for READONLY mode..2048MB Information for relational data store ds_sthiu0_5T ============================================================== Backup location........../net/nwshare/dsbackups Is backup folder shared..true Backup schedule..........{"schedule-starttime":"00:00:00","schedule-frequency":"Every 7 DAYS"} Days backup retained.....31 Data store status........Started SSL enabled..............true Last failover............20150130190334005 Member machines..........MACHINE1.DOMAIN.COM, MACHINE4.DOMAIN.COM Maximum connections......150 Owning system URL........https://gisserver_webadaptor.domain.com/server Portal for ArcGIS URL....https://portal_webadaptor.domain.com/portal Number of connections....8 connection(s) to managed database Data Store mode..........READWRITE Is Point-in-time recovery enabled...No Query optimizer enabled.............Yes Information for tile cache data store ds_wztxj7um ============================================================== Data location............./home/ags/arcgis/datastore/usr/arcgisdatastore/nosqldata Data store status.........Started Last failover.............20200130190334005 Backup location.........../net/sharedir/datastore/backup Is backup folder shared...true Mode......................primary-standby Member tile cache machines..MACHINE1.DOMAIN.COM, MACHINE2.DOMAIN.COM Owning system URL.........https://gisserver_webadaptor.domain.com/server Portal for ArcGIS URL.....https://portal_webadaptor.domain.com/portal Information for spatiotemporal big data store ds_qpko99Cl ============================================================== Backup location...................../net/dirshare2/sbds_bu Max rebalance off time..............60 minutes Automatic rebalance ................On Machines in spatiotemporal cluster..MACHINE1.DOMAIN.COM, MACHINE2.DOMAIN.COM, MACHINE3.DOMAIN.COM Current coordinator in cluster......MACHINE1.DOMAIN.COM Registered spatiotemporal machines..MACHINE1.DOMAIN.COM, MACHINE2.DOMAIN.COM, MACHINE3.DOMAIN.COM Owning system URL...................https://gisserver_webadaptor.domain.com/server Portal for ArcGIS URL...............https://portal_webadaptor.domain.com/portal Data Store mode.....................READWRITE Information for graph store x2b7s0n ============================================================== Deployment mode..................primaryStandby Access endpoint..................MACHINE1:9829 Backup location................../net/dirshare3/graphbu Registered graph store machines..MACHINE1.DOMAIN.COM Owning system URL................https://gisserver_webadaptor.domain.com/server Portal for ArcGIS URL............https://portal_webadaptor.domain.com/portal Information for object store w1tiknx ============================================================== Deployment mode...................singleInstance Access endpoint...................MACHINE1:9900 Backup location.................../net/dirshare4/myfiles/ods_bu Registered object store machines..MACHINE1.DOMAIN.COM Owning system URL.................https://gisserver.domain.com:6443/server/admin Portal for ArcGIS URL.............https://portal_webadaptor.domain.com/portal
diskcleanup
This utility is used with relational, tile cache, and spatiotemporal big data stores.
The diskcleanup utility removes temporary files left over from operations such as restoredatastore and upgrading ArcGIS Data Store. Certain files are retained after upgrading that would allow you to troubleshoot a failed upgrade or restore operation. After you confirm that your upgrade or restore operation is successful and the system is working as expected, you can run this tool to remove those temporary files and regain free disk space on the data store machines.
This utility cleans up disk space on one machine at a time. If you need to clean up files on more than one machine in the same data store, you must run the tool on each machine.
Syntax
diskcleanup
Example
To run the diskcleanup utility, you must confirm that you want to proceed.
./diskcleanup
You are attempting to cleanup some archived data generated as part of ArcGIS Data Store upgrades or backup-restore operations. Once removed, this data can't be recovered. Do you want to continue (Yes or No)?
exportmanageddb
Legacy:
Esri deprecated the exportmanageddb utility at 10.5.1. The functionality has been incorporated into the backupdatastore utility. Use the backupdatastore utility to create a backup file instead.
importmanageddb
Legacy:
The importmanageddb utility was kept for several releases after its associated utility—exportmanageddb—was deprecated to allow you to use older export files. Starting with ArcGIS Data Store 11, though, use the backupdatastore utility to create a backup file and use the restoredatastore utility to restore the data store from the backup file instead of importing relational and tile cache data stores from an export file.
listadminusers
This utility is used with all data store types.
The listadminusers utility returns the usernames and passwords for the administrator, replica owner, and geodatabase administrator of a relational data store. It returns the administrator for tile cache and spatiotemporal big data stores and for graph stores.
Syntax
listadminusers
Examples
In this example, listadminusers is run on a machine where only a relational data store is installed.
./listadminusers.sh
Admin users for relational data store ds_abcd1234 ================================================= Database Admin User.... adm_32ret / tT30sbYk22jF Database Repl User..... dsrepuser / uWn/MV0678h4 GDB Admin User......... sde / iO=Qst751epb
In this example, listadminusers is run on a machine where only a spatiotemporal big data store is installed.
./listadminusers.sh
Admin users for spatiotemporal big data store bds_abcd1234 ================================================= Store admin user.... els_321ret / B1as70fF1
In this example, listadminusers is run on a machine where only a graph store is installed.
./listadminusers.sh
Admin users for graph store s2t0ic1 ================================================= Store admin user....root / ypz5kx2c5tk4fequ
In this example, listadminusers is run on a machine where only an object store is installed.
./listadminusers.sh
Admin users for object store w1tiknx ================================================= Store admin user....n6o96nl53vzkm36d / bpvifyjz73xwhot4
listbackups
This utility is used with all data store types.
When run for relational data stores, the listbackups utility only functions on the primary data store machine.
Run the listbackups utility to determine the following:
- The time a backup operation started
- Whether a backup completed or is still running
- Whether the backup was created using the backupdatastore utility or created automatically by ArcGIS Data Store
- How many backup files you have, to determine whether you need to delete any
- Confirm backup file names before running the deletebackup utility
When you run the listbackups utility, specify the backup location for which you want to see the list of backup files. If you do not specify a location, the listbackups utility returns backups for the default backup location.
Syntax
listbackups [--store {relational | tileCache | spatiotemporal | graph | object}] [--location '<location_arguments>']
If you do not specify a data store type, the utility defaults to relational and returns the backups for the relational data store running on that machine. If the relational data store is not present on the machine where you run the utility, the utility will return an error message.
The location parameter indicates where backup files are stored. Arguments are as follows:
- name=: The name of the backup location. You specified this name when you configured the backup location or, if you didn't specify a name, ArcGIS Data Store assigned a default name.
- location=: The path to the shared file directory, S3 bucket, or Blob storage container.
Examples
In this example, backups are listed for the default backup location of a relational data store:
./listbackups.sh --store relational Backup_Name Status Backup_Time Mode ======================================================================= phase1proj_bu BackupComplete 2023-03-08 14:12 manual phase2proj_bu BackupComplete 2023-02-21 11:43 manual ds_gdt1omh-2023020130 BackupComplete 2023-02-01 03:00 scheduled Backups located at: '/net/myserver.net.com/dsbackups'
In this example, spatiotemporal big data store backups are listed for the backup location named sbdsbu:
./listbackups.sh --store spatiotemporal --location "name=sbdsbu" Backup_Name Status Backup_Time Mode ================================================================== backup1 BackupComplete 2023-07-11 09:47 manual Backups located at: '/net/myserver.ntw.com/spatiotemporal'
listdatasources
This utility is used with spatiotemporal big data stores.
Due to a bug in 10.8.1, ArcGIS GeoEvent Server map services that use square or hexagon aggregation do not render after upgrading to 10.9 or later. To correct this, you can run the listdatasources utility to get the names of GeoEvent Server map services, and use the service names it returns with the upgradedatasource utility to update the data for individual services.
The listdatasources utility can be run on any machine in the spatiotemporal big data store.
Syntax
listdatasources
Example
Run the listdatasources utility at a command prompt to return a list of GeoEvent Server map services.
./listdatasources
listmanageduser
This utility is used with all data store types.
The listmanageduser utility returns the username and password of the account that owns the hosted feature layer data in relational and spatiotemporal big data stores. This utility also returns the username and password of the scene cache owner for tile cache data stores, and the owner of the graphs in the graph store.
Syntax
listmanageduser
Examples
In the following example, listmanageduser is run on a machine that contains a relational and tile cache data store. The machine is the primary relational data store.
./listmanageduser.sh
Managed user for relational data store ds_abcd1234 =================================================== UserName Password Database gwi_n2Te0 4cXddhZhve=Y db_qv5e1 Managed user for tile cache data store tcs_e41f0rj2 =================================================== UserName Password usr_n8778 y47ccno913
In this example, listmanageduser is run on a spatiotemporal big data store machine.
./listmanageduser.sh
Managed user for spatiotemporal big data store bds_6udbx4321 ============================================================= UserName Password fmr_o1He3 5vZggkPbaw+T
In the following example, listmanageduser is run on a graph store machine.
./listmanageduser.sh
Managed user for graph store s2t0ic1 ================================================ UserName Password mu_vwmp8c6 m5c2so76y3b0qczf
In the following example, listmanageduser is run on an object store machine.
./listmanageduser.sh
Managed user for object store w1tiknx ============================================================= Store credential........n6o96nl53vzkm36d / bpvifyjz73xwhot4
registerdatastore
This utility is used with all data store types.
The data store retains information about the GIS Server site machine names. If you move your GIS Server site to new machines (for example, if you got new hardware or if the existing GIS Server machines failed), you must unregister the data store from the GIS Server site to remove this information. After you configure GIS Server on a new machine (or machines), you can register the data store with the GIS Server site using the registerdatastore utility.
Note:
The registerdatastore utility is used to register the data store to the same GIS Server site it was registered to previously. The data store contains the data for the hosted layers on the existing GIS Server site. Registering it to a different GIS Server site does not re-create the hosted layers.
The registerdatastore utility can be run on the primary relational data store machine or primary machine of a tile cache data store or object store that is running in primary-standby mode. It can be run on any machine in a tile cache data store or object store running in cluster mode or any spatiotemporal big data store machine.
Syntax
registerdatastore <ArcGIS Server URL> <ArcGIS Server site administrator username> <ArcGIS Server site administrator password> --stores {relational | tileCache | spatiotemporal | graph | object}
Though not recommended, if you have multiple different types of data stores installed on the same machine, you can register them at the same time by specifying the data store type separated by a comma (no spaces); for example, type --stores relational,tileCache.
Example
In this example, a relational data store is reregistered to a GIS Server site with the URL https://gisserver.domain.com:6443. The ArcGIS Server primary site administrator username is agsadmin with the password Tan$p0n.
./registerdatastore.sh https://gisserver.domain.com:6443 agsadmin Tan$p0n --stores relational
removemachine
This utility is used with relational, tile cache, and spatiotemporal big data stores and graph stores.
Use the removemachine utility to remove a machine from a data store that contains more than one machine. The removemachine utility is used in the following scenarios:
- Remove a standby machine from a relational data store or graph store. You can run this utility on the standby machine or from the primary machine in the case where the standby machine is unavailable.
- Remove a machine from a tile cache data store. You can run this utility on any machine in the tile cache data store, but you cannot run removemachine on a tile cache data store composed of only one machine.
- Remove a machine from a spatiotemporal big data store. You can run this utility on any machine in the spatiotemporal big data store, but you cannot run removemachine on a spatiotemporal big data store composed of only one machine.
Syntax
removemachine <machine name> --store {relational | tileCache | spatiotemporal | graph} [--force {true | false}] [--prompt {yes | no}]
--force—By default, this is set to false. Specify true with this option only if the registered ArcGIS Server site is unavailable.
--prompt—By default, this is set to yes. If you do not want to confirm the action, specify no with this option.
Examples
In this example, the spatiotemporal big data store machine, gefour, is removed from the data store.
./removemachine.sh gefour --store spatiotemporal
In this example, the hosting server site is unavailable and the relational data store machine, fsdata, is removed from the data store.
./removemachine.sh fsdata --store relational --force true
removestandbymachine
Legacy:
Esri has deprecated the removestandbymachine utility. It is still present to allow existing scripts to continue working, but you should start using the removemachine utility instead.
restoredatastore
This utility is used with all data store types.
If you lose access to the data used by your hosted layers, use your backup files and the restoredatastore utility to recover the data store.
If you cannot recover the data store, install ArcGIS Data Store on a new machine, do not configure the data store, and restore the last full backup to the new machine.
If you use a relational data store and want to roll the hosted feature layer data back to a specific time in the past, restore on top of the existing relational data store. Note that you can only restore to a previous relational data store state for which you have backup files available. For example, if you only retain backups for five days, you can only recover the data store to a point in time within those five days.
If you need to replace one of the machines in a multimachine tile cache data store, you'll most likely need to rebalance the scene layer caches across the tile cache data store. Part of that process requires you to restore the tile cache data store, setting the replicatedata option to true. See Recover a data store for instructions.
The restoredatastore utility can be run on the primary relational data store machine. The utility can be run on any of the tile cache data store, spatiotemporal big data store, graph store, or object store machines.
Syntax
restoredatastore [options]
Supported options are as follows:
- [--store {relational | tileCache | spatiotemporal | graph | object}]—Indicates the type of data store you want to restore.
- [--target {most-recent | <yyy-mm-dd-hh:mm:ss> | <name of backup file>}]—All data store types support the backup file name with the target option. A time stamp and most-recent are only supported for relational data stores.
- [--source-loc <parent directory of the source backup file location>]—This is the top-level directory where the backup files you want to use to restore the data store are located. This will be the path to a file share location, a backup location name, or an Amazon S3 or Azure Blob storage backup location.
Tip:
You can run the configurebackuplocation utility with the --operation option set to list to obtain backup source locations. If you cannot run the configurebackuplocation utility—for example, if the data store machine crashed and you are restoring to a new machine to recover the data store—you can identify the backup source location by the presence of a file named agsds_backup_sig.
- [--bound {true | false}]—The --bound option is only supported with relational data stores.
- [--data-dir <new data store directory>]—This is the ArcGIS Data Store directory on the machine where you are restoring the database. Only use --data-dir if you are restoring the data store to a new machine. When restoring to a new machine, you must also specify the --source-loc option.
- [--server-url <ArcGIS Server URL registered with data store>]—If you specify --bound true to keep the data store registered with the same GIS Server site it was registered with when you created the backup, specify the URL of that GIS Server site. If you specify --bound true and have moved your services to a new GIS Server site, use the --server-url option to specify the URL of the new GIS Server site. Note that if you specify a new site URL and have not moved the services to this new server, the data in the data store will not be accessible.
- [--server-admin <username of ArcGIS Server admin>]—This option is required if you specify --bound true or do not specify the --bound option. Supply the username of the ArcGIS Server administrator.
- [--server-password <password of ArcGIS Server admin>]—This option is required if you specify --bound true or do not specify the --bound option. Supply the password for the ArcGIS Server administrator.
- [--loaddata {true | false}]—Supported with tile cache and spatiotemporal big data stores and graph and object stores. Set this option to false when you need to restore the data store to a new set of machines, but the data will not fit on the first machine. This allows you to restore the data store's schema, add more machines to the data store to accommodate all the data, and then run the restoredatastore utility again with --loaddata set to true to restore the data. By default, this option is set to true.
- [--replicatedata {true | false}]—Supported with tile cache data stores. Set this option to true when you need to rebalance scene cache data after adding a machine to the tile cache data store.
- [--mode {primaryStandby | cluster}]—When you restore a tile cache data store to a new machine, specify whether you want a two-machine tile cache data store for high availability (primaryStandby) or a scalable multimachine tile cache data store (cluster).
- [--prompt {yes | no}]
When restoring after a crash or to move the relational data store, specify --target most-recent. If restoring a relational data store to a point in time, specify the date and time (in UTC) to which you want to restore the data store. If you have a specific backup file you want to restore, specify the backup file name instead. If you do not specify a target, the most recent backup is restored.
By default, the restored data store is associated (bound) with its GIS Server site. Only specify --bound false if you want to restore the data store without maintaining the association with the data store's GIS Server site. You would only do this as a last resort if the previous GIS Server site was lost and could not be recovered; you could restore the data store unbound and configure it with a new federated GIS Server site. However, the layers that used the data in the data store would no longer exist. You would have to connect to the data store database to extract the data to another format and republish it to ArcGIS Enterprise.
Examples
In this example, the most recent backup is in a backup location named rdsbackups and will be restored to the existing data store. Because the default store type is relational, and it remains bound by default to the GIS Server site with which it was registered, you do not have to specify --store relational or --bound true. However, you do have to specify the GIS Server URL and administrator credentials.
./restoredatastore.sh --target most-recent --source-loc rdsbackups --server-url https://gisserver.domain.com:6443 --server-admin siteadmin --server-password SAup.4s You are attempting to restore the data store from a data store backup. This process could take a long time, depending on the size of your data. Please do not interrupt the process once it has started. Do you want to continue (Yes or No)?Yes
In this example, a relational data store that has point-in-time recovery enabled is restored from the relational data store backup location on a network share to the state it was in at 2:30 p.m. (UTC) on July 17, 2014.
./restoredatastore.sh --target 2014-07-17-14:30:00 --source-loc /net/sharedserver/entbackups/relds --server-url https://gisserver.domain.com:6443 --server-admin siteadmin --server-password SAup.4s You are attempting to restore the data store from a data store backup. This process could take a long time, depending on the size of your data. Please do not interrupt the process once it has started. Do you want to continue (Yes or No)?Yes
In this example, the relational data store is restored to a new machine using a backup file named movedatastore. When you restore to a new machine, you must specify the location of the backup file and the location of the new ArcGIS Data Store data directory. Because the hosted feature services are still running on the same GIS Server site with which the relational data store is registered, --bound true is not required, but the GIS Server URL and administrator credentials are required.
./restoredatastore.sh --target movedatastore --source-loc /net/buserver/data/backups --data-dir /usr/datastore --server-url https://gisserver.domain.com:6443 --server-admin siteadmin --server-password SAup.4s You are attempting to restore the data store from a data store backup. This process could take a long time, depending on the size of your data. Please do not interrupt the process once it has started. Do you want to continue (Yes or No)?Yes
In the following example, the tile cache data store is restored to a new machine. When you restore to a new machine, you must specify the location of the backup file and the location of the new ArcGIS Data Store data directory. Because the scene services are still running on the same GIS Server site with which the tile cache data store is registered, --bound true is not required, but the GIS Server URL and administrator credentials are required.
./restoredatastore.sh --store tilecache --source-loc /net/buserver/scenedata/backups --data-dir /usr/datastore --server-url https://gisserver.domain.com:6443 --server-admin siteadmin --server-password SAup.4s You are attempting to restore the data store from a data store backup. This process could take a long time, depending on the size of your data. Please do not interrupt the process once it has started. Do you want to continue (Yes or No)?Yes
In this example, the tile cache data store is restored from a file named mybackupfilename to rebalance scene cache data after a new machine is added to the tile cache data store.
./restoredatastore.sh --store tilecache --target mybackupfilename --serverurl https://gisserver.domain.com:6443 --server-admin siteadmin --server-password myAdminPWd! --replicatedata true You are attempting to restore the data store from a data store backup. This process could take a long time, depending on the size of your data. Please do not interrupt the process once it has started. Do you want to continue (Yes or No)?Yes
In the following example, a spatiotemporal big data store backup file (bds1) is restored from a named backup location (awsloc).
./restoredatastore.sh --target bds1 --store spatiotemporal --source-loc 'name=awsloc' --server-url https://gisserver.domain.com:6443 --server-admin siteadmin --server-password SAup.4s You are attempting to restore the data store from a data store backup. This process could take a long time, depending on the size of your data. Please do not interrupt the process once it has started. Do you want to continue (Yes or No)?Yes
See Recover a data store for steps and an example of restoring a spatiotemporal big data store after hardware failure.
revokeconnection
This utility is used with relational data stores.
If you used the allowconnection utility to temporarily allow another client to connect directly to the relational data store, you can revoke the connection ability by running the revokeconnection utility.
The revokeconnection utility can be run on the primary relational data store machine only.
Syntax
revokeconnection <host name> <username> [<database>]
Example
In this example, the data store database will no longer accept connections from the workcom machine when logged in as user hqo.n_1E7.
./revokeconnection.sh workcom bn0_3Wa.m hqo.n_1E7
unregisterdatastore
This utility is used with all data store types.
You can use the unregisterdatastore utility to do the following:
- Unregister a single-machine data store of any type from the hosting GIS Server site.
You must restart the hosting server after you unregister an object store.
- In data stores running in primary-standby mode, you can unregister the primary machine after you remove the standby machine.
- For spatiotemporal big data stores and tile cache data stores running in cluster mode, you can unregister the last machine after you remove all the other machines from the cluster.
Note:
If you unregister the data store to permanently remove it from the deployment, delete the hosted layers that use the data before you unregister that data store. For example, if organization members were testing GeoAnalytics Tools and used the spatiotemporal big data store for the layers created by the tools, but determined that the layers could be stored in the relational data store instead, delete the test hosted spatiotemporal feature layers before you unregister the spatiotemporal big data store. If you don't, you will have unusable layer items left in the portal and unusable services running on the hosting server.
When you unregister a machine from the data store, the hosting GIS Server site (or ArcGIS Knowledge Server site in the case of knowledge graphs) can no longer connect to that machine, and all services that contained data from the unregistered data store will no longer function. However, this utility does not delete the data; if you decide you still need the data store, you can use the registerdatastore or configuredatastore utility to add it back.
Syntax
unregisterdatastore --stores {relational | tileCache | spatiotemporal | graph | object} [--prompt {yes | no}]
If you have more than one type of data store installed on the same machine and want to unregister more than one at a time, specify each data store type separated by a comma (no spaces). For example, to unregister a relational and tile cache data store, type --stores relational,tileCache.
Example
Here, the unregisterdatastore utility is run to unregister the relational and tile cache data stores from the hosting GIS Server site. A prompt is returned, which is the default behavior. To suppress the prompt, specify --prompt No.
./unregisterdatastore.sh --stores relational,tileCache You are going to unregister the data store. Do you want to continue (Yes or No)?Yes
updatebackupretaindays
This utility is used with relational data stores.
ArcGIS Data Store retains relational data store backup files for seven days by default. You can change how often backup files are purged from the backup directory by running the updatebackupretaindays utility.
The updatebackupretaindays utility can be run on the primary relational data store machine only.
Syntax
updatebackupretaindays <number of days>
Example
In the following example, backup file retention time is changed to 10 days:
./updatebackupretaindays.sh 10
updatebackupschedule
This utility is used with all data store types.
By default, ArcGIS Data Store creates a full backup of the relational data store every four days. You can change how often a full backup is created by running the updatebackupschedule utility.
There are no default automatic backups for tile cache or spatiotemporal big data stores or graph stores. To set an automatic backup schedule for a spatiotemporal big data store, you must first set a valid backup location.
Specify a start time using 24-hour clock notation, for example, 00:00:00 for midnight and 13:00:00 for 1 p.m. Use the frequency option to specify the number of days between backups. To disable automatic backups, set the frequency to 0. If you disable automatic backups, be sure to run the backupdatastore utility to create backups manually.
You can run the updatebackupschedule utility on the primary relational data store machine. The tool can be run on any tile cache or spatiotemporal big data store machine.
For more information about ArcGIS Data Store backups, see Manage data store backups.
Syntax
updatebackupschedule [--store {relational | tileCache | spatiotemporal | graph | object}] [--starttime <local server time>] --frequency <number of days>
If you do not specify a new start time, the existing start time setting does not change. If you do not specify a data store type, relational data store is assumed.
Examples
In this example, full backups of a relational data store will take place at 11 p.m. (local server time) every 10 days:
./updatebackupschedule.sh --starttime 23:00:00 --frequency 10
In this example, a backup schedule is set for a tile cache data store. After the initial backup copy of all tile cache data store databases, ArcGIS Data Store copies newly created data store databases to the location specified with the configurebackuplocation every 14 days.
./updatebackupschedule.sh --store tileCache --frequency 14
updatesslcertificate
This utility is used with all data store types.
You can replace the self-signed certificate used to authenticate communication between the hosting server and the data store and between data store machines with a certificate verified and signed by a certifying authority (CA) or domain certificate.
See Replace the ArcGIS Data Store SSL certificate for more information.
Syntax
updatesslcertificate <source certificate file name with path> <password for the source certificate file> <alias for the certificate>
Example
After you receive a CA-signed certificate file, run updatesslcertificate to replace the ArcGIS Data Store self-signed certificate.
./updatesslcertificate.sh /usr/files/mysignedcert.pfx "ps4mycert" dsmachinename
upgradedatasource
This utility is used with spatiotemporal big data stores.
Due to a bug in 10.8.1, ArcGIS GeoEvent Server map services that use square or hexagon aggregation do not render after upgrading to 10.9 or later. To correct this, run the upgradedatasource utility to update the indexes associated with the source data for these GeoEvent Server map services.
While indexes are updating, no one can access the map service.
The upgradedatasource utility can be run on any machine in the spatiotemporal big data store.
Syntax
upgradedatasource [<service name>]
Examples
In this example, all GeoEvent Server map service sources are upgraded:
./upgradedatasource
In this example, the upgradedatasource utility will update the indexes used by the GeoEvent Server map service recon. The service name was determined using the listdatasources utility.
./upgradedatasource recon