Skip to content

Create & store backups in telegram infinite storage

License

Notifications You must be signed in to change notification settings

aiexz/telebackup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Telebackup

What is Telebackup?

Telebackup is a simple backup tool for Telegram. It allows you to back up your local files to Telegram. It uses tar & gzip to compress the files and then sends them to Telegram chat

Features

  • Supports multiple files/directories
  • File upload up to 2GB

Installation

Download binary

You can download prebuilt binaries from releases page

Build from source

git clone https://github.com/aiexz/telebackup.git
cd telebackup
go build cmd/telebackup/main.go

Usage

  1. Create a Telegram bot using BotFather and get bot token
  2. Get APP ID & API Hash from my.telegram.org or use provided in example
  3. Edit config.example.yml and rename it to config.yml
  4. Run ./telebackup or ./telebackup --config /path/to/config.yml

Configuration

appId: 6 # Telegram APP ID
appHash: eb06d4abfb49dc3eeb1aeb98ae0f581e # Telegram API Hash
botToken: 123:AAA # Telegram Bot Token
target: 56789123 # Telegram chat/channel username or chat ID
targets:
    - /tmp/test # List of files/directories to back up
    - /tmp/test2

Tip

It is recommended to create a group or channel with the bot to not spam your personal messages

Roadmap

  • Handle files larger than 2GB
  • Support for forums (chats with topics)
  • Support for usage without username, just chat ID
  • Encryption/password protection
  • Signing backups

Contributing

All contributions are welcome. Feel free to open an issue or a pull request

Awesome libraries used

  • gogram - Awesome Telegram API library

Contact

License

MIT

About

Create & store backups in telegram infinite storage

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages