Configuring a Network File System Repository
You can specify a folder that is safe in the network as a repository to store your backup files.
If you are performing this for a clustered setup, ensure that all nodes in the cluster can access the repository.
To configure a network file system repository:
1. From the command prompt, go to SAGInstallDir/IntegrationServer/instances/instance_name/packages/WmAPIGateway/cli/bin.
2. Run the following command to create a network repository:
Linux
./apigatewayUtil.sh configure fs_path -path network_location
Windows
apigatewayUtil.bat configure fs_path -path network_location
For example,
apigatewayUtil.bat configure fs_path -path //10.2.35.121/apigatewayBackup
This command creates a repository called localapigatewayBackup at the specified network location.
You can specify the log file location and log level for the repository creation using the
logFileLocation and
logLevel parameters. For information on these parameters, see
Specifying Log File Details.
3. Restart API Data Store.
4. Optional. Run the following command to list the available list of repositories and verify whether the repository you created appears in the list:
Linux
./apigatewayUtil.sh list manageRepo
Windows
apigatewayUtil.bat list manageRepo
Run the following command to list the available list of analytics data store repositories and verify whether the repository you created appears in the list:
Linux
./apigatewayUtil.sh list manageRepo -analyticsDS true
Windows
apigatewayUtil.bat list manageRepo -analyticsDS true
You can specify the log file location and log level for the repository listing using the
logFileLocation and
logLevel parameters. For information on these parameters, see
Specifying Log File Details.
5. Optional. Run the following command to delete analytics data store repository:
Linux
./apigatewayUtil.sh delete manageRepo -analyticsDS true -repoName analyticsRepo
Windows
apigatewayUtil.bat delete manageRepo -analyticsDS true -repoName analyticsRepo
For example,
apigatewayUtil.bat delete manageRepo -analyticsDS true -repoName myrepo
This command deletes the local repository named myrepo.
You can specify the log file location and log level for deleting the repository using the
logFileLocation and
logLevel parameters. For information on these parameters, see
Specifying Log File Details.