Chapter II: ArcGIS datastore Management and Maintenance1. Backup Management
The purpose of the backup is to avoid data loss in the event of raw data corruption or other unexpected situations, and to quickly recover with backup data to ensure that the service is still available.
In stand-alone mode, data can be stored using the datastore machine, and the backup data is stored on another machine or device, such as:
Backup is primarily used for fast recovery of data, but it does not solve the problem of service access interruption. Interrupt issues can be resolved using the master Standby mode.
1.1. Modify the backup path
The Changebackuplocation tool can be used to modify the backup path. Detailed operation is shown in the previous section.
1.2. Set the backup frequency
By default, Datastore makes a weekly full-library backup, every 5 minutes, or an incremental backup when the log file is full. Incremental backups are controlled by Datastore, and the backup frequency of the full library backup can be configured by the Updatebackschedule tool.
The tool is located under the Datastore installation directory \datastore\tools. Run cmd with the administrator and execute the command:
\>updatebackschedule--starttime <local Server time>--frequency <number of days>
Example:
\>updatebackschedule--starttime 03:00:00--frequency 14
1.3. Set the backup file save Duration
By default, backup files are retained for only 31 days. Can be modified using the Updatebackupretaindays tool.
\>updatebackupretaindays <number of days>
1.4. Manual Backup
Manual backup using the Backupdatastore tool.
\>backupdatastore <backup_name>
1.5. Delete the manual backup
Files backed up with the Backupdatastore tool can be removed using the DeleteBackup tool. Liskbackups tool to list backup file information.
\>liskbackups
\>deletebackup <backup_name>
2. datastore Command Tool
The command tool can use--HELP to view details.
2.1, Allowconnection
By default, datastore connections are initiated by the server site. Allowconnection allows connections to be established externally. The tool is only allowed to run on the Datastore master machine.
allowconnection
Hostname:datastore Machine Name
Username: can be viewed using listadminusers or Listmanageduser.
2.2, Backupdatastore
The manual Backup tool is only allowed to run on the Datastore master machine.
Backupdatastore <backup_name>
2.3, Changebackuplocation
Modify the Backup file directory Path tool.
Changebackuplocation <new directory path> [--is-shared-folder<true|false>] [--keep-old-backups <true| False>]
2.4, Changedbproperties
The Connection number modification tool. By default, Datastore accepts 150 connections. When estimating the number of connections, it is necessary to consider that datastore internal processing needs to occupy 5 connections.
changedbproperties --max-connections <maximum number connections allowed>
2.4, Changeloglocation
Log file storage path modification tool. Note the folder permissions.
changeloglocation <directory path>
2.5, ChangePassword
Datastore Database Password Modification tool. By default, Datastore creates accounts randomly and can be viewed using the listadminusers and Listmanageduser tools.
changepassword <user name> <new password> [--prompt {yes | no}]
2.6, Changestaginglocation
The staging File path modification tool. When recovering data, datastore extracts the backup file to the staging directory. UNC paths are supported.
changestaginglocation <directory path>
2.7, Configuredatastore
Create the data store and register to the server Site tool.
configuredatastore <ArcGIS Server admin URL> <ArcGIS Server administrator> <ArcGIS Server administrator password> <data directory>
Example:
configuredatastore https://myserver.domain.com:6443/arcgis/admin siteadmin [email protected] c:\data
2.8, DeleteBackup
Remove the Backup tool.
deletebackup <backup_name>
2.9, Describedatastore
View datastore details including: File path, backup frequency, retention duration, running status, main standby machine, maximum number of connections, server site address, portal address.
2.10, Listadminusers
View user information (user name and password), including: Data store Administrator, replica owner, GDB Administrator.
2.11, Listbackups
View backup file information, including: Name, status, time, backup method.
2.12, Listmanagedusers
View user information (user name and password). The user is a database user that is managed in datastore for publishing services and is also the feature data owner.
2.13, Registerdatastore
The data store records the server site machine information. If the site has been migrated or redeployed, it can be removed by anti-registration and then re-registered using Registerdatastore. Registerdatastore is used to register a previously registered server site because the data for the feature service is already stored in datastore. The tool can only be run on the main machine.
Registerdatastore <arcgis Server url> <arcgis Server site administrator user name> <arcgis Server site Admi Nistrator password>
2.14, Removestandbymachine
For the removal of the standby datastore machine. The tool can only be run on the standby machine.
Removestandbymachine <machine name>
2.15, Restoredatastore
Restore the backup Data tool. The tool can only be run on the main machine.
Restoredatastore [--target {most-recent | yyyy-mm-dd-hh:mm:ss | <backup file>}] [--source-loc <location of Backu P Files>] [--bound <true|false>] [--data-dir <new data store directory>] [--prompt {yes | no}]
If you are recovering to the latest backup, set--target most-recent, and if you restore to a specified point in time, set the time, or if you revert to the specified backup file, set the backup filename.
Bound sets whether the recovered data needs to be associated with the server site. It is associated by default, but it should be set to False if the server site is not available when recovering.
Example:
\>restoredatastore--target most-recent--source-loc \\buserver\data\backups--data-dir C:\arcgisdatastore
\>restoredatastore--target 2014-07-17-14:30:00--source-loc \\buserver\data\backups
2.16, Revokeconnection
Used to temporarily authorize other clients to access the data store directly. Only supported on the main machine.
Revokeconnection
2.17, Unregisterdatastore
Unregister the data store from the ArcGIS server site. If you are using a primary standby mode, you must first unregister the standby node.
Unregisterdatastore [--prompt {yes | no}]
2.18, Updatebackupretaindays
Modify the database backup file to save the length of time. Save for 31 days by default.
Updatebackupretaindays <number of Days>
2.19, Updatebackupschedule
Modify the database backup frequency tool. The default full-library backup is once a week.
Updatebackschedule--starttime <local Server time>--frequency <number of days>
Example: 23-point full-Library backup every 10 days.
Updatebackschedule--starttime 23:00:00--frequency 10
Other chapters See:
ArcGIS datastore Manual-Introductory article: http://www.cnblogs.com/xinligis/p/4223569.html
ArcGIS datastore Manual-admin: http://www.cnblogs.com/xinligis/p/4223617.html
ArcGIS datastore Manual-FAQ: http://www.cnblogs.com/xinligis/p/4223622.html
ArcGIS datastore Manual--Management chapter