Skip to content
This repository has been archived by the owner on Mar 10, 2022. It is now read-only.
/ ukaska Public archive

"Ukaska" is a MongoDB image with a built-in backup to Telegram channel

Notifications You must be signed in to change notification settings

parabolahq-archive/ukaska

Repository files navigation

Ukaska

Ukaska (eng. Pointer) - is docker image with mongodb, that has builtin backup to Telegram

Getting Started

Build with

Building manualy

docker build -t ukaska .

Running docker Image

  1. Create bot with help of @BotFather and set it to

    export BOT_TOKEN="123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11"
  2. Get channel ID with this instruction

    export CHANNEL_ID="-100123456"
  3. Set backup time for jobber (in example below backup set on 00:00 daily)

    ❗ Keep in mind, that Jobber has another format, than cron, it starts with seconds

    export JOBBER_STRING="0 0 0 * * *"
  4. Set mongodb URL for backup (e.g. for setting specific database)

    export DB_URL="mongodb://localhost:27017/db"
  5. Set mongodb collection names (use JSON serialization)

    export COLLECTION_NAMES='["HamstersCollection"]'
  6. Run docker container

    docker run -dp 27017:27017 --env DB_URL=${DB_URL} \
                               --env JOBBER_STRING='${JOBBER_STRING}' \
                               --env CHANNEL_ID=${CHANNEL_ID} \
                               --env BOT_TOKEN=${BOT_TOKEN} \
                               --env COLLECTION_NAMES='${COLLECTION_NAMES}' \
                               ghcr.io/parabolahq/ukaska:main

    or (if you want to enable notifications)

    docker run -dp 27017:27017 --env DB_URL=${DB_URL} \
                               --env JOBBER_STRING='${JOBBER_STRING}' \
                               --env CHANNEL_ID=${CHANNEL_ID} \
                               --env BOT_TOKEN=${BOT_TOKEN} \
                               --env COLLECTION_NAMES='${COLLECTION_NAMES}' \
                               --env DISABLE_NOTIFICATION='false'
                               ghcr.io/parabolahq/ukaska:main