{"id":13316319,"url":"https://github.com/hkfuertes/telegram-db-backup","last_synced_at":"2025-03-10T22:33:00.101Z","repository":{"id":65254728,"uuid":"588957120","full_name":"hkfuertes/telegram-db-backup","owner":"hkfuertes","description":"Docker Container to backup MySQL/MariaDB to a *.sql.zip file to a Telegram Bot Chat","archived":false,"fork":false,"pushed_at":"2023-01-19T09:20:45.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2023-03-07T09:22:16.078Z","etag":null,"topics":["docker","mariadb","telegram"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hkfuertes.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2023-01-14T15:51:51.000Z","updated_at":"2023-01-14T16:42:54.000Z","dependencies_parsed_at":"2023-02-10T21:50:13.939Z","dependency_job_id":null,"html_url":"https://github.com/hkfuertes/telegram-db-backup","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hkfuertes%2Ftelegram-db-backup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hkfuertes%2Ftelegram-db-backup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hkfuertes%2Ftelegram-db-backup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hkfuertes%2Ftelegram-db-backup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hkfuertes","download_url":"https://codeload.github.com/hkfuertes/telegram-db-backup/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242939425,"owners_count":20209874,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","mariadb","telegram"],"created_at":"2024-07-29T18:21:31.928Z","updated_at":"2025-03-10T22:33:00.078Z","avatar_url":"https://github.com/hkfuertes.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Telegram Database Backup\nSimple docker image to `cron` a database backup to a Telegram Bot.\n\n### Run\nYou can run it via docker-compose, but there are several environment variables that need to be passed on:\n\n| Variable | Example Value | Description |\n|--------- | ------------- | ----------- |\n| DATABASE_NAME | csbookdb | Name of the database. |\n| DATABASE_USER | admin | Database user to be used. |\n| DATABASE_PASSWORD | **** | Database user's password. |\n| DATABASE_HOST | localhost | Database url. |\n| DATABASE_PORT | 3306 | Database port. |\n| CRON_EXPRESION | * * * * * | CRON expresion for the backup to happen. |\n| TELEGRAM_TOKEN | ******** | Telegram token from `BotFather` |\n| CHAT_ID | **** | Chat ID to where the backup will be sent. |\n\n### Integration with existing project\nTo integrate into an existing project you can just first build the project:\n```bash\ndocker build -t telegram-db-backup .\n```\n...and add the following `docker-compose.override.yml` file:\n```yaml\nversion: '3.5'\n\nservices:\n  telegrambot:\n    image: telegram-db-backup:latest # or the \u003ctag\u003e you specified on build...\n    # build:\n    #   context: .\n    environment:\n      - DATABASE_USER=${DATABASE_USER}\n      - DATABASE_PASSWORD=${DATABASE_PASSWORD}\n      - DATABASE_NAME=${DATABASE_NAME}\n      - DATABASE_HOST=${DATABASE_HOST}\n      - DATABASE_PORT=${DATABASE_PORT}\n      - TELEGRAM_TOKEN=${TELEGRAM_TOKEN}\n      - CHAT_ID=${CHAT_ID}\n      - CRON_EXPRESION=${CRON_EXPRESION}\n    restart: unless-stopped\n```\n\n\u003e Provided that you added the required variables in the `.env` file, by running `docker-compose up` on your project, `docker-compose` will pick both `docker-compose.yml` and `docker-compose.override.yml` files and so, both project will be on the same network and no ports need to be exported.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhkfuertes%2Ftelegram-db-backup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhkfuertes%2Ftelegram-db-backup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhkfuertes%2Ftelegram-db-backup/lists"}