| Section |
|---|
| Column |
|---|
|
| Panel |
|---|
| borderColor | #CCCCCC |
|---|
| bgColor | #FFFFFF |
|---|
| titleBGColor | #F0F0F0 |
|---|
| borderStyle | solid |
|---|
| title | On the page: |
|---|
| |
|
|
You can use the ngpsh.exe utility and JSON commands for automated creation and restoration of configuration backup. This method is designed for automation of administration tasks and integration into scripts.
| Note |
|---|
|
Backups created using the ngpsh.exe command-line utility aren't displayed in the Backup and restore utility and cannot be restored using the Backup and restore utility. |
Automated creation of configuration backup
To create an automated backup of the configuration, do the following:
- Run the command prompt as administrator.
- Go to the utility directory by running the command:
| Code Block |
|---|
|
cd <Axxon One installation directory>\AxxonOne\bin |
- Run the command to create a backup:
| Code Block |
|---|
|
ngpsh.exe backup backupJson [path_to_backup_folder] [node_name] [local] [shared] [license] [tickets] |
Parameters of the backupJson command:
| Parameter | Required | Description |
|---|
| path_to_backup_folder | Yes | The path to the folder where the backup is saved. Use double backslashes (\\) in the path |
| node_name | Yes | The name of the server whose configuration you want to save |
| local | No | This parameter saves the local configuration of the server (objects, their parameters, connections, and change history) |
| shared | No | This parameter saves the general configuration of the domain (users, layouts, and so on) |
| license | No | This parameter saves the license |
| tickets | No | This parameter saves the structure of the domain |
Example of a command:
| Code Block |
|---|
|
ngpsh.exe backup backupJson c:\\backups Server1 local |
Result:
A file named Server1.json is created in the c:\backups folder, containing the backup copy.
Automated restoration of configuration backup
| Note |
|---|
|
Before performing any restore operations, make sure that you have a current backup in case you need to roll back. |
...