Backup of policies
Prerequisites
Performing a backup requires the use of the CLI. Please make sure the CLI is installed as described in Installation.
Creating a backup
-
Create a local backup directory, for example
backup_policies
. Create a subdirectorybackup_policies/services
. -
Create a token using the CLI login command. This token is needed for the next step.
$ secmanctl login -d https://gis.example.com:6443/arcgis
-
Execute the CLI sync command with the
--reverse
Option:$ secmanctl sync --reverse -f ./backup_policies -d https://gis.example.com:6443/arcgis -t MghzyNeWubQtT..
-
Make sure no error occurred and check the backup folder for completeness. For each service with security.manager NEXT activated there should be a JSON file with the same name as the service. Those files should be in the same folder structure as the services in ArcGIS Server.
Restoring a backup
-
To restore a backup, you need the backup folder, for example
backup_policies
, that results from a previous backup. -
Create a token using the CLI login command. This token is needed for the next step.
$ secmanctl login -d https://gis.example.com:6443/arcgis
-
Execute the CLI sync command to restore the policies from the backup folder:
$ secmanctl sync -f ./backup_policies -d https://gis.example.com:6443/arcgis -t MghzyNeWubQtT..
-
You can verify the restored policies in the Policy Explorer of the Manager UI.