This project serves as a practical demonstration of efficiently uploading files to SFTP servers using provided credentials.
-
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 namedfiles
.
- Execute using the following command:
-
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 directorySFTP_DESTINATION_FOLDER
on the SFTP server, as outlined in the.env
file.
- Execute using the following command:
-
Clone the repository:
git clone https://github.com/dev-vivekkumarverma/file_uploader_to_sftp_server.git cd file_uploader_to_sftp_server
-
Configure your SFTP server credentials in the
.env
file.
SFTP_HOST=""
SFTP_USERNAME=""
SFTP_PASSWORD=""
SFTP_DESTINATION_FOLDER=""
-
Run the file replication script:
./startFileReplicator.sh
-
Upload files to the SFTP server:
./startSFTPFileUpload.sh
We welcome contributions! Please check out the Contribution Guidelines for detailed instructions on how to contribute to this project.