futurizeworld / IMPLICIT-SFTP-FILE-SENDER

Powershell script using WINSCP for sending files to an Remote Implicit SFTP server. The program also have File Change detection system for sending automatically the most recent File in the [CONTAINER] folder

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

🟒 PISFS πŸ”Ž

Compatible Status Code Size Status Commit Status Issues Status npm version license

IMPLICIT-SFTP-FILE-SENDER is a Powershell script using WINSCP for sending files to an Remote Implicit SFTP server. The program also have File Change detection system for sending automatically the most recent File in the [CONTAINER] folder.

IMPLICIT-SFTP-FILE-SENDER COVER

INSTALLATION



πŸ“š Table Of Contents πŸ“‘


πŸ’¨ What is this Library for? πŸ€”

IMPLICIT-SFTP-FILE-SENDER is a small library that is useful for filtering a One Level or Multi Level Depth array of objects with multiple match-criteria. The exposed methods receives an array as the first argument, and a plain object describing the fields to filter as the last argument.

Note: This library can only be used with Powershell or WSF but you already know that πŸ€¦πŸΏβ€β™‚οΈ.

✨ Key Features 🎯

  • Use it without Installation because all the dependencies are Provided.
  • CHANGE AUTO DETECTION by Event listeners attached in the CONTAINER folder.
  • Optimized for Great Performance even with Big Fat @/@ Files .
  • βœ… TOO EASY TO USE !! πŸ₯³πŸ₯³

πŸ“₯ HOW TO RUN IT ? πŸ”°

# RUN IT in Powershell CLI
.\ScriptLauncher.ps1

# or you may prefer
right click on 'ScriptLauncher.ps1' and Click on Run it With Powershell

This SCRIPT relies on NOTHING SO YOU DON'T NEED ADDITIONNAL PACKAGES.


πŸ€” HOW IT WORKS ? πŸ€”

You only need to execute the ScriptLauncher.ps1 !

The program will then attach Events Listener to the CONTAINER Folder which will trigger an SFTP sending of the last elements put in this folder to the specified servers.

That's It.


βš™ Usage: SERVER CONNECTION PARAMS 🎚

➀ Open The SFTP-UPLOADER File 🟒

Then Go to the following lines (70) and Replace the defaults values with your server's props:

    # Configurer les options de session
    $sessionOptions = New-Object WinSCP.SessionOptions -Property @{
        Protocol = [WinSCP.Protocol]::Ftp
        HostName = "XXX.XXX.XXX.XXX"
        UserName = "USERNAME"
        Password = "*********"
        FtpSecure = [WinSCP.FtpSecure]::Implicit # DON'T TOUCH THAT LINE.
        TlsHostCertificateFingerprint = "GET IT FROM WINSCP GENERATE SCRIPT PANEL"
    }

⚠ Note: ⚠ This script is made for Developers and Only For SFTP Implicit servers because it's hard to find a programmatical way to do such thing 🚨. You can easily tweak to fit your desires.


Configuration Options

Coming Soon !


Contributing ❀

πŸ‘‹πŸΎ Pull requests are welcome!


Issue Reporting

If you have found a bug or if you have a feature request, please report them at this repository issues section. Please do not report security vulnerabilities on the public GitHub issue tracker. The Responsible Disclosure Program details the procedure for disclosing security issues.


GREETINGS

❀❀ ❀❀


Author

Orbit Turner


License

This project is licensed under the MIT license. See the LICENSE file for more info.


❀ MADE WITH LOVE ❀

Image of OT

About

Powershell script using WINSCP for sending files to an Remote Implicit SFTP server. The program also have File Change detection system for sending automatically the most recent File in the [CONTAINER] folder

License:Other


Languages

Language:PowerShell 100.0%