Sign inSign up

lanutrix/pgdump-telegram

By lanutrix

•Updated 8 months ago

Simple dumper postgres to telegram chat with handle topic and gzip file

Image
Databases & storage
0

1.1K

lanutrix/pgdump-telegram repository overview

⁠pgdump-telegram

Lightweight Alpine-based image (~15 MB) that backs up a PostgreSQL database on a cron schedule and sends the gzipped dump to Telegram via Bot API.

⁠Features

  • Cron-scheduled pg_dump + gzip compression
  • Sends dump to Telegram chat, group, or supergroup topic
  • Configurable max file size (Telegram 50 MB limit enforced)
  • Timezone support (default: Europe/Moscow)
  • Startup validation — checks all env vars and verifies Telegram connectivity before scheduling
  • Multi-arch: linux/amd64, linux/arm64

⁠Quick Start

docker run -d --name pgdump-telegram
-e TG_BOT_TOKEN="123456:ABC-DEF"
-e TG_CHAT_ID="-1001234567890"
-e PG_HOST="db"
-e PG_USER="postgres"
-e PG_PASSWORD="secret"
-e PG_DATABASE="mydb"
lanutrix/pgdump-telegram

Tag summary

Content type

Image

Digest

sha256:321fb0483…

Size

8.2 MB

Last updated

8 months ago

docker pull lanutrix/pgdump-telegram