/
Basic Task

Basic Task

XML Sync Configuration Documentation

Background

The task should be configured in an XML file that stores all the desired configurations of the sync process. Below are the available options and parameters for the configuration.


Preparations

  1. Synced Data Target: Allocate a file system or S3 bucket repository where XPLG can sync data and maintain it.

  2. Add Remote Flux/PortX Account(s): Configure accounts representing Flux instances that have access to the sources.


Structure

The general XML structure for the sync configuration is as follows:

<SyncLogsConfiguration> <SyncLogsRepository repositoryDirectory="..." timeToKeep="..." /> <SyncLogsNode repositoryDirectory="..."> <Remote> <Account classKey="xpolog.eye.media.remote.RemoteXplgAccount" name="..."/> </Remote> <SyncLogsDirectory syncDirectory="..." directoriesToInclude="" directoriesToExclude="" filesToInclude="" filesToExclude="" subdirsScanLevel="" /> </SyncLogsNode> </SyncLogsConfiguration>

XML Reference

SyncLogsRepository Parameters

Parameter

Mandatory/Optional

Description

Values

Parameter

Mandatory/Optional

Description

Values

repositoryDirectory

Mandatory

The absolute path of the root directory for syncing data.

String

timeToKeep

Optional

Time (in days) to retain synced data in the repository.

Number (days)

Example:

<SyncLogsRepository repositoryDirectory="/mnt/FluxRepo/" timeToKeep="30" />

Checksum Parameters

The checksum configuration can be defined globally in the <SyncLogsConfiguration> tag or for specific nodes in the <SyncLogsNode> tag. Note that enabling checksum on large files may affect performance.

Parameter

Mandatory/Optional

Description

Values

Parameter

Mandatory/Optional

Description

Values

algorithm

Mandatory

Algorithm used to calculate the checksum.

MD5, SHA-1

enabled

Optional

Activates checksum validation.

true/false

interval

Mandatory

Frequency of checksum calculation.

m (minutes), h (hours), d (days)

retryAttempts

Mandatory

Number of retries for checksum validation before alerting.

Number

mailRecipients

Optional

Email addresses for checksum failure alerts.

Semicolon-separated email list

Example:

<Checksum interval="30m" algorithm="MD5" mailRecipients="ops@xplg.com" enabled="true" retryAttempts="3" />

SyncLogsNode Parameters

Parameter

Mandatory/Optional

Description

Values

Parameter

Mandatory/Optional

Description

Values

repositoryDirectory

Mandatory

Directory within the repository to sync data into.

String

key

Optional

Unique key for the SyncLogsNode.

String

Example:

Account Parameters

Parameter

Mandatory/Optional

Description

Values

Parameter

Mandatory/Optional

Description

Values

classKey

Mandatory

The account class to use.

String

name

Mandatory

The name of the remote Flux account to use.

String (case-sensitive)

Example:

SyncLogsDirectory Parameters

Parameter

Mandatory/Optional

Description

Values

Parameter

Mandatory/Optional

Description

Values

syncDirectory

Mandatory

Source directory on the remote Flux node to sync data from.

String (path)

repositoryDirectory

Optional

Directory within the repository to sync data into.

String

directoriesToInclude

Optional

Include directories using wildcards (e.g., Apps*) or regex.

String

directoriesToExclude

Optional

Exclude directories using wildcards or regex. Use lowercase names.

String

filesToInclude

Optional

Include files using wildcards (e.g., *.log) or regex.

String

filesToExclude

Optional

Exclude files using wildcards or regex.

String

subdirsScanLevel

Optional

Depth of sub-folder scanning.

Number

timeInterval

Optional

Time interval for file updates to be synchronized.

Number

timeIntervalUnit

Optional

Unit of the time interval (years, months, weeks, days, hours, mins).

String

Example:


Complete Example