Skip to content

Files

Latest commit

Jan 5, 2024
70c1016 · Jan 5, 2024

History

History
55 lines (39 loc) · 1.48 KB

README.md

File metadata and controls

55 lines (39 loc) · 1.48 KB

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.