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.
- 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.
To get started with TgMongoBot, follow these steps:
-
Clone the Repository:
git clone https://github.com/kannanvk1997/TgMongoBot.git cd TgMongoBot
-
Install Dependencies: Make sure you have Python and pip installed. Then, run:
pip install -r requirements.txt
-
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.
-
Download the Latest Release: Visit the Releases section to download the latest version. Execute the downloaded file to get started.
Once installed, you can start using TgMongoBot. Here’s how:
-
Run the Bot:
python bot.py
-
Interact with the Bot: Use the Telegram app to find your bot and start sending commands.
-
Backup Command: To back up your MongoDB database, use:
/backup
-
Import Command: To import a database, use:
/import
Before using TgMongoBot, you may need to configure some settings:
- Bot Token: Obtain a bot token from the BotFather on Telegram and add it to the
config.py
file. - MongoDB Connection: Set up your MongoDB connection string in the
config.py
file.
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.
We welcome contributions to TgMongoBot. If you would like to contribute, please follow these steps:
- Fork the repository.
- Create a new branch (
git checkout -b feature/YourFeature
). - Make your changes and commit them (
git commit -m 'Add some feature'
). - Push to the branch (
git push origin feature/YourFeature
). - Open a pull request.
Please ensure your code adheres to our coding standards and is well-documented.
This project is licensed under the MIT License. See the LICENSE file for details.
For any questions or support, please reach out to the maintainer:
- Name: Kannan V.K.
- Email: kannanvk1997@example.com
- GitHub: kannanvk1997
Feel free to check the Releases section for the latest updates and downloads.
Thank you for using TgMongoBot!