• 30 Jan

    How to generate a RSA Key for SFTP

    How to generate a RSA Key for SFTP

    30th of January 2024

    At this moment we are adding an option which allows you to generate different kind of SSH Keys like DSA, RSA, .. which can be used for example with SFTP.

    limagito file mover generate RSA Key for SFTP

    #sftp #ssh #managedfiletransfer #filetransfer #filemanagement

    If you need any help with this ‘generate a RSA Key’ option, please let us know.

    Best Regards,

    Limagito Team

    By Limagito-Team SFTP , ,
  • 27 Jan

    Move data to Dropbox project folder based on filename information

    Q: Move data to Dropbox project folder based on filename information

    Objective: Move data from server to Dropbox project folder based on filename information.

    Example of such a filename: P9876543210_122123_EI0001_BIA1234C.zip

    The Project Number is the first part until the underscore > P9876543210 This Project Number should be available in one of the Dropbox subfolders, so you’ll need to scan the subfolders of the Dropbox as Destination Root folder. There may be cases where the Project Number cannot be found in the Dropbox. This could be due to a typo or incorrect formatting by the scientist when setting up the experiment. In this case the .zip should be moved to the Dropbox …\Clients\Unknown\ directory.

    A: We added a new option in version v2024.1.20.0 to achieve this.

    • We used a Windows folder as Source. In this folder we’re going to search for the project zip files.

    limagito file mover windows folder as source

    • Added the following include filename filter because we are only interested in .zip files:

    limagito file mover filename filter setup

    • Next, please open our Pascal Script option:

    limagito file mover pascal script option

    • Enable and Add the following ‘On Destination’ Pascal Script:
      • Please add the following script: link
      • This script will:
        • strip the project number from the filename into variable %VSA
          • P9876543210_122123_EI0001_BIA1234C.zip > P9876543210 > %VSA
        • remove the project number from the filename into variable %VSB
          • P9876543210_122123_EI0001_BIA1234C.zip > 122123_EI0001_BIA1234C.zip > %VSB
        • Both variables will be used in the Dropbox as Destination setup

    Move data to Dropbox project folder based on filename information

    • We added our Dropbox as Destination option and adjusted the Directory option > ‘/Clients’:

    limagito file mover dropbox as destination

    • Dropbox OAuth2 setup:
      • Enable ‘Send Code Challange’
      • Enable ‘Include Nonce’
      • Authorization Endpoint URL: https://www.dropbox.com/oauth2/authorize
      • Token Endpoint URL: https://api.dropboxapi.com/oauth2/token
      • Add your Client ID and Client Secret (= App Secret)
      • As scope we used:
        • files.metadata.read files.metadata.write files.content.read files.content.write
      • Type was set to:
        • code
      • Do not forget to set the Redirect URI (must be exact)
        • http://localhost:3017/
    • Click <GET> and follow the procedure. Afterwards Refresh and Access Token will be automatically added.

    limagito file mover oauth2 setup

    • Now the important part. We added our new ‘Search for Subdir Options’ under the ‘File & Directory’ Tab. So in our setup we will be looking for a subdirectory through all existing subfolders of the Dropbox Destination Directory with the name ‘%VSA/Data’ which converts using our example filename to ‘P9876543210/Data’. The variable %VSA is determined by the previous Pascal Script. The reason we added the /Data part is because the customer requested to store the files within a Data subfolder of the corresponding Project directory.
    • If we don’t find this subdirectory then Clients/Unknown will be used. This ‘Search and replace Directory default full path’ must be a full path meaning starting from the home folder.

    limagito fil emover search for subdir option

    • We also added file renaming because the customer wanted to strip the Project number from the original Source filename.
      • The complete filename will be replaces with the content of variable %VSB

    limagito file mover dropbox file rename setup

    #dropbox #managedfiletransfer #filetransfer #filemanagement

    If you need any help with this ‘Dropbox project folder’ request, please let us know.

    Best Regards,

    Limagito Team

    By Limagito-Team Dropbox ,
  • 27 Jan

    How to access the dropbox root namespace

    How to access the dropbox root namespace

    Q: So we still aren’t able to see root access of the dropbox, i read through this and this looks like a coding issue but we really don’t know enough about it to be sure. I wanted to run it past you and get your thoughts. Let us know when you have some time so we can catch up.

    A: In version v2023.12.31.0 we added a custom headers option fro Dropbox

    A very interesting article can be found here

    Using the Dropbox-API-Path-Root Header

    We are going to use the following header entry:

    Dropbox-API-Path-Root: {“.tag”: “root”, “root”: “7”}

    So add the following entry to both headers, ‘API Requests’ and ‘Content Request’:

    adding Dropbox-API-Path-Root in limagito file mover dropbox setup

    If you don’t know your Root ID then just add a dummy like we did, we used 7 like in the article. Click connect and you’ll receive an error if the Root ID is not correct (invalid_root). Please copy the correct root_namespace_id from the RunTime log into the Header Value. Don’t forget to adjust both ‘API Requests’ and ‘Content Requests’ headers.

    limagito file mover access the dropbox root namespace\access the dropbox root namespace.01.png

    • After the adjustment of the Root ID we are able to access all folders:

    limagito file mover dropbox setup

    Some extra information about the ‘API Requests’ and ‘Content Request’ headers. We added the possibility to add different headers to the part that is doing the control requests (API Requests) and the part doing the file upload/download requests (Content Requests). This makes it possible for Dropbox specialists to tweak our DropBox option.

    #dropbox #managedfiletransfer #filetransfer #filemanagement

    If you need any help with this ‘dropbox root namespace’ question, please let us know.

    Best Regards,

    Limagito Team

1 13 14 15 16 17 18 19
SEARCH