Giter Club home page Giter Club logo

duplicati-notify-to-telegram's Introduction

Duplicati Notify to Telegram

GitHub all releases GitHub pull requests GitHub issues

Script for receiving notifications in telegram about the results of Duplicati backup

Installation:

Duplicati is able to run scripts before and after backups. This functionality is available in the advanced options of any backup job (UI) oras option (CLI). The (advanced) options to run scripts are
--run-script-before = /script/notify_to_telegram.sh
--run-script-after = /script/notify_to_telegram.sh

To work, you need to set two required variables:

  • TELEGRAM_TOKEN
  • TELEGRAM_CHATID

These variables can be set directly in the script file or set as environment variables. If you are using docker you can use the following example to automatically install the script in the /script/notify_to_telegram.sh folder and set the environment variables:

version: "3"
services:
  duplicati:
    image: linuxserver/duplicati:2.0.6
    container_name: duplicati
    entrypoint: >
          sh -c "mkdir -p /script &&
          if [ ! -f /script/notify_to_telegram.sh ]; then
            curl -s `printenv SCRIPT_URL` -o /script/notify_to_telegram.sh
          fi &&
          chown -R 1000:1000 /script &&
          chmod -R 744 /script && 
          /init"
    environment:
      - PUID=0
      - PGID=0
      - TZ=Europe/Berlin
      - TELEGRAM_TOKEN=<YOUR TELEGRAM TOKEN>
      - TELEGRAM_CHATID=<YOUR TELEGRAM CHAT ID>
      - SCRIPT_URL=https://raw.githubusercontent.com/jonmunson/duplicati-notify-to-telegram/main/notify_to_telegram.sh
    volumes:
      - </path/to/config>:/config
      - </path/to/script>:/script
      - </path/to/backups>:/backups
      - </path/to/source>:/source
    ports:
      - 8200:8200
    restart: unless-stopped

duplicati-notify-to-telegram's People

Contributors

oxystin avatar jonmunson avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.