https://github.com/dev-vivekkumarverma/file_uploader_to_sftp_server
It is a project made to demonstrate how to upload files to the SFTP servers with given credentials.
https://github.com/dev-vivekkumarverma/file_uploader_to_sftp_server
pysftp python-dotenv python3 sftp sftp-upload upload-files
Last synced: 2 months ago
JSON representation
It is a project made to demonstrate how to upload files to the SFTP servers with given credentials.
- Host: GitHub
- URL: https://github.com/dev-vivekkumarverma/file_uploader_to_sftp_server
- Owner: dev-vivekkumarverma
- Created: 2024-01-05T04:04:05.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-05T04:42:00.000Z (over 1 year ago)
- Last Synced: 2025-01-25T05:43:02.388Z (4 months ago)
- Topics: pysftp, python-dotenv, python3, sftp, sftp-upload, upload-files
- Language: Python
- Homepage:
- Size: 5.86 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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:
```bash
./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:
```bash
./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:
```bash
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=""
```
3. Run the file replication script:
```bash
./startFileReplicator.sh
```4. Upload files to the SFTP server:
```bash
./startSFTPFileUpload.sh
```## Contributing
We welcome contributions! Please check out the [Contribution Guidelines](CONTRIBUTING.md) for detailed instructions on how to contribute to this project.