You can back up and restore your ArcGIS Monitor settings.
Back up ArcGIS Monitor Administrator
Complete these steps to back up ArcGIS Monitor Administrator:
- Back up the defs folder in the <Installation location>\ArcGIS Monitor\Administrator\resources\app\collector directory.
備考:
The collection definition files store the configuration for all counters. If the collection definition files are corrupted or lost, all counters will have to be re-created.
- Back up the ArcGIS_Administrator folder in the C:\Users\<User name>\AppData\Roaming directory.
- Back up the bin folder in the <Installation location>\ArcGIS Monitor\Administrator\resources\app directory.
Back up the ArcGIS Monitor Server application
Complete these steps to back up the ArcGIS Monitor Server application:
- Back up the Share folder in the <Installation location>\ArcGIS Monitor directory.
- Back up the config.db file in the <Installation location>\ArcGIS Monitor\Server\settings directory.
- Back up the ssl folder in the <Installation location>\ArcGIS Monitor\Server directory.
- Back up the MongoDB databases.
- Open a command prompt as an administrator.
- Change the directory to <Installation location>\Program Files\MongoDB\Server\<Version>\bin.
- Run the following command to back up the auth databases:
mongodump --db auth --out <DestinationFolder> --port 27017
注意:
The auth database stores user credentials. If the databases are lost, you cannot connect to or re-create the databases.
- Run the following command to back up the ArcGIS Monitor databases:
mongodump --db ArcGISMonitor --out <exportDataDestination> --port 27017
注意:
The ArcGIS Monitor database stores data collected by all counters. If the databases are lost, you cannot access historical data.
Restore ArcGIS Monitor Administrator
Complete these steps to restore ArcGIS Monitor Administrator:
- In Windows Services manager, stop all the ArcGIS Monitor Service <Name> services.
- Copy the contents of the backup defs folder to the <Installation location>\ArcGIS Monitor\Administrator\resources\app\collector\defs directory.
- Copy the contents of the ArcGIS_Administrator folder to the C:\Users\<User name>\AppData\Roaming\ArcGIS_Administrator directory.
- Copy the contents of the bin folder to the <Installation location>\ArcGIS Monitor\Administrator\resources\app\bin directory.
Restore the ArcGIS Monitor Server application
Complete these steps to restore the ArcGIS Monitor Server application:
- Copy the contents of the Share folder to the <Installation location>\ArcGIS Monitor\Share directory.
- Copy the config.db file to the <Installation location>\ArcGIS Monitor\Server\settings directory.
- Copy the contents of the ssl folder to the <Installation location>\ArcGIS Monitor\Server\ssl directory.
- Browse to the<Installation location>\ArcGIS Monitor\Mongo directory.
- Rename the Data folder OLD_Data.
- Create a folder named Data.
- Restore the MongoDB databases.
- Open ReportServerLog.log in <Installation location>\ArcGIS Monitor\Server\logs in a text editor.
- Use the text editor's search feature to find Starting Mongo.
- Copy the path after Starting Mongo to an empty text document for reference—for example, C:\\Program Files\\MongoDB\\Server\\<Version>\\bin\\mongod.exe --port 27017 --logpath C:\\ArcGIS Monitor\\Mongo\\logs\\mongo.log --dbpath C:\\ArcGIS Monitor\\Mongo\\Data --storageEngine wiredTiger --bind_ip 127.0.0.1.
- Open a command prompt as an administrator.
- Change the directory to <Installation location>\Program Files\MongoDB\Server\<Version>\bin.
- Use the following sample to run mongod.exe with the parameters you copied from the ReportServerLog.log file to start the MongoDB database. Be sure to replace the double slash characters in the file paths with a single slash.
mongod.exe --port 27017 --logpath "<Installation location>\ArcGIS Monitor\Mongo\logs\mongo.log" --dbpath "<Installation location>\ArcGIS Monitor\Mongo\Data" --storageEngine wiredTiger --bind_ip 127.0.0.1
- Open another command prompt as an administrator.
- Change the directory to <Installation location>\Program Files\MongoDB\Server\<Version>\bin.
- Run the following command to restore the auth database:
mongorestore --db auth <Backup folder>\auth --port 27017
- Run the following command to restore the ArcGIS Monitor database:
mongorestore --db ArcGISMonitor <Backup folder>\ArcGISMonitor --port 27017
- Close all the command prompt windows.
- Right-click the ArcGIS Monitor Server service in Windows Services manager and click Restart.
- In Windows Services manager, start all of the ArcGIS Monitor Service <Name> services.