dsscheckpointretention - DSS 6 | Data Source Solutions Documentation

Documentation: dsscheckpointretention - DSS 6 | Data Source Solutions Documentation

dsscheckpointretention

Usage

<b>dsscheckpointretention</b> [<b>-p</b><em>purge_seconds</em>] <em>checkpointfilepath</em>

Description

Command dsscheckpointretention displays the checkpoint files available in the directory defined by checkpointfilepath. Also, this command with option -p allows you to purge/delete the checkpoints available in the checkpointfilepath directory.

For more information, see Tuning Capture Checkpoints.

Options

This section describes the options available for command dsscheckpointretention.

Parameter Description
-ppurge_seconds

Purge checkpoints older than the specified time in purge_seconds. The format for purge_seconds can be in any of the following time formats: hh:mm:ss, mm:ss, or ss.

Checkpoints are purged only if there is a checkpoint newer than purge_seconds available in checkpointfilepath directory.

Examples

This section provides examples of using the dsscheckpointretention command.

Example 1. View checkpoint files

The following command displays the checkpoint files available in the /home/dss/dss_config/capckpretain/myhub/mychannel/src directory.

dsscheckpointretention /home/dss/dss_config/capckpretain/myhub/mychannel/src
Example 2. Delete checkpoint files

The following command deletes checkpoint files older than 24 hours.

dsscheckpointretention -p 24h /home/dss/dss_config/capckpretain/myhub/mychannel/src