Skip to content

It is a project made to demonstrate how to upload files to the SFTP servers with given credentials.

Notifications You must be signed in to change notification settings

dev-vivekkumarverma/file_uploader_to_sftp_server

Repository files navigation

File Uploader to SFTP Server

This project serves as a practical demonstration of efficiently uploading files to SFTP servers using provided credentials.

Features

  • startFileReplicator.sh:

    • Execute using the following command:
      ./startFileReplicator.sh
    • This script duplicates files from the originalFiles folder, creating multiple copies with distinct names but identical extensions. These copies are then saved in a folder named files.
  • startSFTPFileUpload.sh:

    • Execute using the following command:
      ./startSFTPFileUpload.sh
    • After triggering the command above, the script uploads files from the files folder to the specified file directory SFTP_DESTINATION_FOLDER on the SFTP server, as outlined in the .env file.

Usage

  1. Clone the repository:

    git clone https://github.com/dev-vivekkumarverma/file_uploader_to_sftp_server.git
    cd file_uploader_to_sftp_server
  2. Configure your SFTP server credentials in the .env file.

Content of .env looks like:

SFTP_HOST=""
SFTP_USERNAME=""
SFTP_PASSWORD=""
SFTP_DESTINATION_FOLDER=""
  1. Run the file replication script:

    ./startFileReplicator.sh
  2. Upload files to the SFTP server:

    ./startSFTPFileUpload.sh

Contributing

We welcome contributions! Please check out the Contribution Guidelines for detailed instructions on how to contribute to this project.

About

It is a project made to demonstrate how to upload files to the SFTP servers with given credentials.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published