Skip to content

A Telegram bot for MongoDB backups and imports using PyTDBot. Supports .gz and .json formats, with Docker integration for MongoDB tools.

License

Notifications You must be signed in to change notification settings

kannanvk1997/TgMongoBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TgMongoBot

GitHub release Docker

TgMongoBot is a powerful Telegram bot designed for MongoDB backups and imports. Built using PyTDBot, this bot supports both .gz and .json formats, making it a versatile tool for managing your MongoDB data. It also integrates seamlessly with Docker, allowing you to utilize MongoDB tools with ease.

Table of Contents

Features

  • Backup and Import: Effortlessly back up your MongoDB databases and import them as needed.
  • Format Support: Works with .gz and .json formats, providing flexibility for data handling.
  • Docker Integration: Use MongoDB tools within a Docker environment for easier management.
  • User-Friendly: Simple commands to make operations straightforward.
  • Secure: Designed with security in mind to protect your data.

Installation

To get started with TgMongoBot, follow these steps:

  1. Clone the Repository:

    git clone https://github.com/kannanvk1997/TgMongoBot.git
    cd TgMongoBot
  2. Install Dependencies: Make sure you have Python and pip installed. Then, run:

    pip install -r requirements.txt
  3. Set Up Docker (optional): If you want to use Docker, ensure Docker is installed on your system. You can find installation instructions on the Docker website.

  4. Download the Latest Release: Visit the Releases section to download the latest version. Execute the downloaded file to get started.

Usage

Once installed, you can start using TgMongoBot. Here’s how:

  1. Run the Bot:

    python bot.py
  2. Interact with the Bot: Use the Telegram app to find your bot and start sending commands.

  3. Backup Command: To back up your MongoDB database, use:

    /backup
    
  4. Import Command: To import a database, use:

    /import
    

Configuration

Before using TgMongoBot, you may need to configure some settings:

  1. Bot Token: Obtain a bot token from the BotFather on Telegram and add it to the config.py file.
  2. MongoDB Connection: Set up your MongoDB connection string in the config.py file.

Commands

Here are the primary commands you can use with TgMongoBot:

  • /start: Initializes the bot and provides a welcome message.
  • /backup: Initiates the backup process for your MongoDB database.
  • /import: Imports a specified database from the backup.
  • /status: Checks the current status of the bot and operations.

Contributing

We welcome contributions to TgMongoBot. If you would like to contribute, please follow these steps:

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature/YourFeature).
  3. Make your changes and commit them (git commit -m 'Add some feature').
  4. Push to the branch (git push origin feature/YourFeature).
  5. Open a pull request.

Please ensure your code adheres to our coding standards and is well-documented.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contact

For any questions or support, please reach out to the maintainer:

Feel free to check the Releases section for the latest updates and downloads.

Thank you for using TgMongoBot!

About

A Telegram bot for MongoDB backups and imports using PyTDBot. Supports .gz and .json formats, with Docker integration for MongoDB tools.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •