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.
  1. From the command prompt, go to SAGInstallDir/IntegrationServer/instances/instance_name/packages/WmAPIGateway/cli/bin.
  2. Run the following command to configure local file system repository:
    Linux
    ./apigatewayUtil.sh configure fs_path -path backup_location
    Windows
    apigatewayUtil.bat configure fs_path -path backup_location
    For example,
    apigatewayUtil.bat configure fs_path -path D:/localapigatewayBackup
    This command creates a backup folder called localapigatewayBackup in the D drive.
  3. 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.

  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 creation 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.