FTP

  • 29 Jan

    Download only certain date specific files

    Q: Download only certain date specific files from FTP
    I have an ftp account that has a file for each day of the month in it. I need to download a file each day for that particular Monday – Sunday. This will go into a rename job so for example file 01162023 (for Monday, January 16, 2023) would be renamed to SLMON. File 01172023 would rename to SLTUE, 01182023 SLWED, and so on until 01222023 for SLSUN.

    So once more, I would need to set a download each night to pull a file with that dates name and have it rename. So tonight would download file 01212023 and rename it to SLSAT. Then Sunday would pull a single file for that date. Is that doable?

    A: Yes this is possible, so you would trigger it every evening and it would pick up the file for tomorrow and rename it. This will also work for other source types than FTP.

    1. Please open the File Filter Setup

    – Enable ‘Allow parameters in File Name filter’ in the Advanced Tab:

    Limagito File Mover File Filter setup

    – Set the Filename Include Filter to:
    %TCD:[IncDay+1]mmddyyyy:.pdf

    In my example I’m looking for .pdf files but it could also be like (every type of file):
    %TCD:[IncDay+1]mmddyyyy:.*

    Notice the [IncDay+1] so it looks for the next day.
    Limagito File Mover Date specific files

    2. Open the Destination setup
    Limagito File Mover WIN as Destination

    – Rename Tab > Enable Rename Files > Setup Renaming:
    Limagito File Mover Destination renaming options

    – Add the following renaming expression:

    RegEx:   (.*)\.(.*)
    Replacement:   SL%TCD:[IncDay+1]ddd:.\2

    Limagito File Mover Destination renaming setup

    – Customer: Great thanks. What would I do if I pulled it at say 1am for the same day?
    – Limagito: Remove the   [IncDay+1]   in the File Filter AND the Renaming setup

    #FileTransfer #FTP #SFTP

    If you need any info about this post, please let us know.

    Best regards,

    Limagito Team

    By Limagito-Team Filters FTP
  • 12 Jun

    Verify integrity of ftp file transfers

    Verify integrity of ftp file transfers

    With FTP you can use a couple of ‘Non-standard‘ Commands to verify the integrity of a file transfer (download & upload):

    • XCRC
    • XMD5
    • XSHA1, XSHA256, XSHA512

    In version v2022.6.12.0 of Limagito File Mover we added support for these Commands to:

    • Built-In FTP Server
    • FTP as Source
    • FTP as Destination

    Not all FTP servers support this ‘Non-Standard’ command. You can check this using the ‘Support’ tab in your FTP Destination setup (v2022.6.12.0). Click ‘Connect’ and check if File Verification is supported by the FTP server. In this screenshot we are connected to the Limagito FTP Server.

    Limagito File Moverr Verify integrity of ftp

    If your FTP server supports File Verification then you can enable this in the FTP Source or Destination setup (Verify Tab > Verify File after Copy/Move).  If your FTP Server does not support File Verification and you need this then maybe you can use: link.

    Limagito FTP Verify option

    #FTP #Filetransfer #Filemanagement

    If you need any info about this request, please let us know.

    Best regards,

    Limagito Team

  • 06 Jun

    Verify FTP download using existing hash file at source

    Q: I am downloading a file, plus the sha256.hash that was created at the file source via FTP. How can I verify FTP download with an already existing hash file? If the feature exists, I don’t seem to be able to find it. An example file name for my application is 12345.dmp – and the hash file is 12345.dmp.hash

    A: In our latest version v2022.6.6.0 we added an option to achieve your request.

    • Please open your FTP as Source Setup:

    Limagito File Mover FTP as Source

    • Select the Verify Tab:
      • Enable ‘Use Checksum file at source to verify download’ option
      • Select the ‘Algorithm’ you used to create the hash file on the FTP server
      • Select the ‘Encoding’ you used to create the hash file on the FTP server
      • Set Checksum Filename. Default is %SFN (= Source File Name) + .hash
        • We will look for that file at the FTP source to verify the download
      • Select if you want to keep the the checksum file download (move to Destination)

    Limagito File Mover Verify FTP download

    • File Filter Setup. In our example we are downloading and checking .pdf files so we added the *.pdf extension to the Filename Include Filter option. Please do not include the hash file extension, this is all handled by the ‘Use Checksum file at source to verify download’ option itself.

    Limagito File Mover File Filter Setup

    • RunTime Log Result:

    Limagito File Mover RunTime Log#FTP #Filetransfer #Filemanagement

    If you need any info about this ‘ Verify FTP download’ request, please let us know.

    Best regards,

    Limagito Team

1 2 3 4 5 6 7
SEARCH