User Tools

Site Tools


tnt2:sysdoc:manifest:readers:ftpreader

Manifest Importer Service - FTPReader

The FTPReader reads a file from a configured FTP site.

Configuration

manifestsources.ftpreader
{
        "type" : "ftp",
        "host" : "ftp.site.com",
        "port" : 21,
        "user" : "ftp_user",
        "password" : "ftp_password",
        "description" : "Sample FTP Configuration",
        "sendercode" : "FTP_testsite",
        "path" : "/sendTest",
        "archiveto" : "/sendTest/Archive",
        "localarchiveto" : "/tnt2/manifest/archive",
        "active" : true,
        "filter" : [
                "<name>[^<]*mySite</name>]",
                "<city>[^<]*City</city>"
        ]
}

Description:

  • type: “ftp” - specifies the type of configuration, this configuration is for the FTPReader
  • host: The host where to fetch the FTP files from
  • port: The port the FTP server runs on
  • user: User to log in to the FTP server as
  • password: The users password
  • description: Plaintext description of this configuration
  • sendercode: A code to set in the imported manifest data to identify the source of the manifest
  • path: The file path on the FTP server where to look for manifest files
  • archiveto: The file path on the FTP server where to move the imported manifest files to
  • localarchiveto: A local file path where to move the imported manifest files to for archiving purpouses
  • active: boolean, whether to use this configuration or not
  • filter: A set of REGEX rules to match, if the read XML file doesn't match all the set rules it is ignored and will probably be picked up by some other manifest importer service
tnt2/sysdoc/manifest/readers/ftpreader.txt · Last modified: 2019/10/25 09:32 by hubbe