Giter Club home page Giter Club logo

backupbot's Introduction

backupbot Docker test, build and push

ita ๐Ÿ‡ฎ๐Ÿ‡น

backupbot e' un insieme di imagini docker per creare backup schedulati di diversi database

backup supportati:

env comuni:

  • TG_TOKEN_BACKUP: token del bot
  • TG_ENDPOINT: endpoint delle bot api di default https://api.telegram.org/
  • TG_TIMEOUT: dopo quanto tempo la connessione al server viene chiusa di default 10
  • NAME: nome del backup
  • MAX_SIZE_BACKUP: larghezza massima del file (se si usa un endpoint standard e' 9M)
  • BACKUP_PASSWORD: password del zip di backup
  • CHAT_BACKUP: chat dove mandare i file
  • CRONTAB_CUSTOM: di default e' ogni giorno a mezzanotte se si vuole cambiare seguire la doc di crontab

env influxdb:

  • INFLUXDB_HOST: indirizzo del server influxdb
  • INFLUXDB_PORT: porta del server influxdb

env mariadb

  • MYSQL_USER: utente di mariadb
  • MYSQL_PASSWORD: password dell'utente mariadb
  • MYSQL_HOST: indirizzo del server mariadb
  • MYSQL_DB: database backup se non indicato o รจ all sono tutti quanti i database

env postgresql

  • POSTGRES_USER: utente di postgresql
  • POSTGRES_PASSWORD: password dell'utente postgresql
  • POSTGRES_HOST: indirizzo del server postgresql
  • POSTGRES_DB: database backup

env redis

  • REDIS_PASSWORD: password del database redis
  • REDIS_HOST: indirizzo del server redis
  • REDIS_PORT: porta del server redis
  • REDIS_DB: database backup

esempio per mariadb

docker run -d --env TG_TOKEN_BACKUP=token_bot --env NAME=mariadb --env MAX_SIZE_BACKUP=9M \
              --env BACKUP_PASSWORD=password_backup --env CHAT_BACKUP=123456789\
              --env MYSQL_USER=root --env MYSQL_PASSWORD=PASSWORD --env MYSQL_HOST=mariadb --env MYSQL_DB=all \
              docker pull ghcr.io/matteob99/backupbot:mariadb-latest

esempio per una cartella

docker run -d --env TG_TOKEN_BACKUP=token_bot --env NAME=mariadb --env MAX_SIZE_BACKUP=9M \
              --env BACKUP_PASSWORD=password_backup --env CHAT_BACKUP=123456789\
              -v folder_path:/data
              docker pull ghcr.io/matteob99/backupbot:folder-latest

backupbot's People

Contributors

matteob99 avatar

Watchers

 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.