Skip to content

The FTP File Transfer Program is designed to automate the transfer of files between a remote FTP server and local/internal network directories using the Python's ftplib library.

License

Notifications You must be signed in to change notification settings

Eclipse91/FTP-File-Transfer-Program

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FTP File Transfer Program

The FTP File Transfer Program is designed to automate the transfer of files between a remote FTP server and local/internal network directories. It includes features for scheduling tasks, logging, and reading configuration parameters from a config.ini file.

Application Structure

  • main.py: The main script for scheduling and running daily reports.
  • config_reader.py: A class for reading and validating configuration parameters from a config.ini file.
  • ftp_file_transfer.py: FTPFileTransfer facilitates the transfer of files between a remote FTP server and local/internal network directories.

Requirements

  • Python 3.6 or higher

Getting Started

  1. Clone the repository:

    git clone https://github.com/Eclipse91/FTP-File-Transfer-Program.git
  2. Navigate to the project directory:

    cd FTP-File-Transfer-Program
  3. Update the config.ini adding the parameters required, follow the steps outlined in the Configuration section

  4. Run the application:

    python main.py

5.Check the ftp_transfer_logger.log file for program logs and any potential issues.

Configuration:

  • Ensure that the config.ini file includes all the mandatory parameters (ftp_host, ftp_port, ftp_user, ftp_password, ftp_directory, schedule).
  • Add the optional parameter if you want (local_directory, internal_network_directory).
  • Ensure the data is formatted correctly (YYYY-MM-DD hh:mm:ss) and that it represents a timestamp occurring after the program execution time.

License

This project is licensed under the GNU GENERAL PUBLIC LICENSE - see the LICENSE file for details.

Notes

  • Authentication issues or configuration problems will be logged for review.
  • Ensure that the program is executed with the necessary permissions to access files and directories.

Feel free to contribute or report issues! This README provides a clearer structure, concise information, and instructions for setting up and running the FTP-File-Transfer-Program. Adjust the content as needed for your project.

About

The FTP File Transfer Program is designed to automate the transfer of files between a remote FTP server and local/internal network directories using the Python's ftplib library.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages