Skip to content

A fast, automated backup tool that monitors a folder, sorts files, zips directories, uploads all data to a Telegram bot, and removes local files after successful upload. Supports multi-threading, large video handling, ignore rules, and smart notifications on completion.

License

Notifications You must be signed in to change notification settings

amitkadam96k/Telegram-Auto-Backup-Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🌟 Telegram Auto Backup Bot

Preview on instagram : https://shorturl.at/TBf3F

✨ Features

  • πŸš€ Auto-detects new files & folders
  • πŸ“€ Uploads everything to Telegram
  • 🎬 Video upload support (auto-zip if >50MB)
  • πŸ—‚οΈ Full folder ZIP + upload
  • πŸ›‘ .backupignore support
  • πŸ“Š Modern progress bar (tqdm)
  • πŸ”” Desktop notifications
  • πŸ” Skips already uploaded files
  • 🧹 Deletes files after successful backup

πŸ“ Folder Structure

Backup/
 β”œβ”€β”€ file1.txt
 β”œβ”€β”€ video.mp4
 β”œβ”€β”€ project/
 β”œβ”€β”€ .backupignore
 └── .uploaded_list.txt
telegram.py

βš™οΈ Configuration

Edit these parameters in telegram.py:

BOT_TOKEN = "YOUR_TELEGRAM_BOT_TOKEN"
CHAT_ID = "YOUR_CHAT_ID"
BACKUP_FOLDER = r"Backup"

▢️ How to Run

python telegram.py

The bot will automatically check for updates every 10 seconds.


πŸ“ Example .backupignore

*.log
*.tmp
secret.txt
cache/

πŸ‘€ Author

Amit Kadam
GitHub: https://github.com/amitkadam96k
Telegram: @agent_k9
Email: [email protected]


⭐ Support the Project

If this script helped you, give the repository a star ⭐ on GitHub!

About

A fast, automated backup tool that monitors a folder, sorts files, zips directories, uploads all data to a Telegram bot, and removes local files after successful upload. Supports multi-threading, large video handling, ignore rules, and smart notifications on completion.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages