Configuring a Local File System Repository
About this task
The local file system functions as the default repository. If you do
not create a repository, the backup files are stored in the
SAGInstallDir/InternalDataStore/archives/
folder, by default.
Note: For a clustered API Gateway setup, ensure that the backup
repository must be accessible for all cluster nodes.
- From the command prompt, go to SAGInstallDir/IntegrationServer/instances/instance_name/packages/WmAPIGateway/cli/bin.
- Run the following command to
configure local file system repository:
Linux
Windows./apigatewayUtil.sh configure fs_path -path backup_location
For example,apigatewayUtil.bat configure fs_path -path backup_location
This command creates a backup folder called localapigatewayBackup in the D drive.apigatewayUtil.bat configure fs_path -path D:/localapigatewayBackup
- Restart API Data Store.
You can now use the configured local repository to store backup files. For information about backing up, Creating API Data Store Backup.
- Optional. Run the following command to list the
available list of repositories and verify whether the repository you created
appears in the list:
Linux
Windows./apigatewayUtil.sh list manageRepo
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
Windows./apigatewayUtil.sh list manageRepo -analyticsDS true
apigatewayUtil.bat list manageRepo -analyticsDS true
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.
- Optional. Run the following command to delete
analytics data store repository:
Linux
Windows./apigatewayUtil.sh delete manageRepo -analyticsDS true -repoName analyticsRepo
For example,apigatewayUtil.bat delete manageRepo -analyticsDS true -repoName analyticsRepo
This command deletes the local repository named myrepo.apigatewayUtil.bat delete manageRepo -analyticsDS true -repoName 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.