File Mover Blog

  • 16 Feb

    How to use parameters within the regex rename option

    How to use parameters within the regex rename option

    Q:  have a case where I’m getting several files from a folder. I’m getting the following files with my filter:

    20240212_P2.pdf

    20240213_P2.pdf

    Where 20240212 represents the date. I’m wanting the files output it to so they are consecutive pages on the same day:

    20240213_P1.pdf

    20240213_P2.pdf

    In my file rename in the destination, I know that I could do something like (20240212)_([A-Z]\d+).pdf in the regex so I can accurately match the file, but it would be really cool if I could use (%TCD:mmddyyyy)_([A-Z]\d+).pdf with the parameter being used as a literal to match on, but I know Limagito is not setup to do that. This is more of a feature request as it would make it really useful.

    Thanks for all you guys do!

    A: We added a new option in v2024.2.16.0 to allow this. This is an advanced option, so it is a bit ‘hidden’.

    • Schedule button > Advanced Tab > “Allow Params In RegEx Renaming”:

    parameters within the regex rename option

    • File rename example using parameters within the RegEx field:

    limagito file mover file renaming using regex

    If you need any help with this ‘parameters within the regex rename option’ question, please let us know.

    Best Regards,

    Limagito Team

    #managedfiletransfer #filetransfer #filemanagement

    By Limagito-Team Rename , ,
  • 16 Feb

    How to move to different destination based on day of week

    How to move to different destination based on day of week

    Q: I was wondering if you have an easy way to determine the day of week based on the filename and move to different locations:

    example:
    ” file_20040218_1″  that is Sunday so it go to folder1
    ” file_20040221_1″  that is Wednesday so it go to folder2
    ” file_20040222_1″  that is thursday so it go to folder2 also
    • In our example we used a Windows folder as Source:

    limagito file mover windows folder as source

    • Next, please open our “Pascal Script” option:

    limagito file mover pascal script option

    • Enable and add the following ‘On Destinations’ Pascal Script: link
      • This script will strip the filename into parts using “_” as delimiter. The second part (= Index [1] of our list),  which is the datepart, will be converted to a TDateTime var. Next we’ll use the DayOfTheWeek function to determine the day mentioned in the filename. The result of the function will be used to set the correct destination folder to our psVSA variable (= %VSA as parameter). We added ctFolder1 and ctFolder2 as Const.

    limagito fil emover pascal script option

    • In our example files from Monday to Friday will go to folder 1 and files from Saturday and Sunday will go to folder 2. This can be easily adjusted.

    limagito file mover pascal script option

    • As Destination we are using [WIN] and the Directory is set to:  %VSA\
      • This %VSA is set by the previous “On Destinations” Pascal Script

    limagito file mover destination setup

    • RunTime Log Result:

    limagito file mover runtime log result

    This is is just an example of what is possible. If you need any help with this ‘destination based on day of week’, please let us know.

    Best Regards,

    Limagito Team

    #managedfiletransfer #filetransfer #filemanagement

  • 03 Feb

    Limagito File Mover mitigates Vulnerability to the SSH Terrapin Attack

    The SSH Terrapin Attack

    In Limagito File Mover v2024.2.3.0 we made some changes to mitigate the SSH Terrapin attack problem. We did this by modifying the selection of the default algorithms in the following ways:

      1. chacha20-poly1305@openssh.com is no longer included by default. It can be re-added by specifying “+chacha20-poly1305@openssh.com” in the new UncommonOptions property we added.
      2. We kept the “-cbc” encryption modes because potentially too many servers would be affected by eliminating these encryption algorithms.
      3. We no longer include the “-etm” MAC algorithms, which are:
        • hmac-sha1-etm@openssh.com
        • hmac-sha2-256-etm@openssh.com
        • hmac-sha2-512-etm@openssh.com

        The -etm MAC algorithms can be re-added by specifying “+ssh-hmac-etm” in the new UncommonOptions property.

    For more information about the Terrapin attack, see https://terrapin-attack.com/

    limagito file mover sftp setup SSH Terrapin Attack

    • In the following example I re-added the -etm MAC algorithms by specifying “+ssh-hmac-etm” in the new “Uncommon Options” property (Advanced Tab).

    limagito file mover sftp setup

    #sftp #ssh #managedfiletransfer #filetransfer #filemanagement

    If you need any help with this ‘Terrapin Attack’, please let us know.

    Best Regards,

    Limagito Team

    By Limagito-Team SFTP ,
1 12 13 14 15 16 17 18 145
SEARCH