Skip to content

A lightweight Python tool that monitors a Windows download folder (such as a torrent directory) and automatically uploads completed files to a Linux server via SFTP.

License

Notifications You must be signed in to change notification settings

Almutairi0/TorrentSync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

TorrentSync

Python Watchdog Paramiko License

A lightweight Python tool that monitors a Windows download folder (such as a torrent directory) and automatically uploads completed files to a Linux server via SFTP.

It uses:

  • Watchdog — detects new files in real time
  • Paramiko — handles SFTP file transfer

Features

  • Monitors any folder for new files
  • Automatically uploads files to a Linux server
  • Runs continuously in the background
  • Lightweight and easy to customize

Setup, Configuration & Usage

Install dependencies:

pip install watchdog paramiko

Must configure this !!!

  • path = "Your completed torrent file" # competed torrent folder to monitor
  • hostname = 'put your ip' # Linux server IP
  • username = 'put your username'" # SSH username
  • password = 'the password for username' # SSH password

Run the script

python main.py

The script will monitor the folder and print messages like:

Monitoring
Found: vid.mp4
Now Uploading ..
upload complete

If you want to contribute fell free to add this improvements.

  • Log events to a file instead of printing to console.

  • Use SSH keys instead of passwords for secure authentication.

  • Move or delete files locally after upload.

  • Add a configuration file (config.json).

  • Send notifications (Telegram/Discord) after upload.

About

A lightweight Python tool that monitors a Windows download folder (such as a torrent directory) and automatically uploads completed files to a Linux server via SFTP.

Topics

Resources

License

Stars

Watchers

Forks

Languages